coercion of type
常见例句
- The data type of the literal may undergo further coercion according to the rules described above.
根据上述法则,常值的资料型别会经过进一步的强制型转。 - But the generative ability of type coercion is too strong to explain things clearly, so conventionality should be put into consideration.
但类型强制作为一种强生成机制,还需要规约性来进一步补充说明。 - 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.
读取一个参数值会耗费不少资源(因为类型的强制转换)。因此,缓存参数值是有意义的,至少当组件正在呈现自己时。 - 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.
格式是一样的,我需要一些输入,然后我要用一个过程来检查,是否是正确的值,然后你就可以做强制转换了,如果能运行,那是一样的,我打算跳过这段,如果不正确,那就会抛出一个异常。
麻省理工公开课 - 计算机科学及编程导论课程节选 返回 coercion of type