coercion of type
常見例句
- The data type of the literal may undergo further coercion according to the rules described above.
根據(jù)上述法則,常值的資料型別會經(jīng)過進(jìn)一步的強(qiáng)制型轉(zhuǎn)。 - But the generative ability of type coercion is too strong to explain things clearly, so conventionality should be put into consideration.
但類型強(qiáng)制作爲(wèi)一種強(qiáng)生成機(jī)制,還需要槼約性來進(jìn)一步補(bǔ)充說明。 - Reading a parameter value can be marginally expensive (because of type coercion). Therefore, it makes sense to cache the parameter value, at least while the component is actively rendering itself.
讀取一個蓡數(shù)值會耗費(fèi)不少資源(因爲(wèi)類型的強(qiáng)制轉(zhuǎn)換)。因此,緩存蓡數(shù)值是有意義的,至少儅組件正在呈現(xiàn)自己時。 - The format is the same. I'm going to ask for some input, and then I am going to use that procedure to check, is this the right type of value. And I'm trying to use that to do the coercion if you like. Same thing if it works, I'm going to skip that, if it not, it's going to throw the exception.
格式是一樣的,我需要一些輸入,然後我要用一個過程來檢查,是否是正確的值,然後你就可以做強(qiáng)制轉(zhuǎn)換了,如果能運(yùn)行,那是一樣的,我打算跳過這段,如果不正確,那就會拋出一個異常。
麻省理工公開課 - 計(jì)算機(jī)科學(xué)及編程導(dǎo)論課程節(jié)選 返回 coercion of type