coercion of type
常見例句
- The data type of the literal may undergo further coercion according to the rules described above.
根據(jù)上述法則,常值的資料型別會經(jīng)過進一步的強制型轉(zhuǎn)。 - But the generative ability of type coercion is too strong to explain things clearly, so conventionality should be put into consideration.
但類型強制作為一種強生成機制,還需要規(guī)約性來進一步補充說明。 - 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ù)值會耗費不少資源(因為類型的強制轉(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.
格式是一樣的,我需要一些輸入,然后我要用一個過程來檢查,是否是正確的值,然后你就可以做強制轉(zhuǎn)換了,如果能運行,那是一樣的,我打算跳過這段,如果不正確,那就會拋出一個異常。
麻省理工公開課 - 計算機科學及編程導論課程節(jié)選 返回 coercion of type