coercion of type
常見例句
- The data type of the literal may undergo further coercion according to the rules described above.
根據(jù)上述法則,常值的資料型別會(huì)經(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)制作為一種強(qiáng)生成機(jī)制,還需要規(guī)約性來進(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.
讀取一個(gè)參數(shù)值會(huì)耗費(fèi)不少資源(因?yàn)轭愋偷膹?qiáng)制轉(zhuǎn)換)。因此,緩存參數(shù)值是有意義的,至少當(dāng)組件正在呈現(xiàn)自己時(shí)。 - 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.
格式是一樣的,我需要一些輸入,然后我要用一個(gè)過程來檢查,是否是正確的值,然后你就可以做強(qiáng)制轉(zhuǎn)換了,如果能運(yùn)行,那是一樣的,我打算跳過這段,如果不正確,那就會(huì)拋出一個(gè)異常。
麻省理工公開課 - 計(jì)算機(jī)科學(xué)及編程導(dǎo)論課程節(jié)選 返回 coercion of type