A more significant advantage of metadata is the ability for a compiler to use it to perform some basic compile-time checking.
元数据更重要的优点是编译器可以使用它来执行基本的编译时检查。
Metadata can be used to create documentation, to track down dependencies in code, and even to perform rudimentary compile-time checking.
元数据可以用于创建文档,跟踪代码中的依赖性,甚至执行基本编译时检查。
SQLJ can perform syntactic and semantic checking on the code, using database connections at compile time.
SQLJ可以通过在编译时使用数据库连接,对代码执行语法和语义上的检查。
Because you're configuring real-world objects, you get some compile time error checking.
因为您配置现实世界的对象时,会得到一些编译时错误检查。
For the trouble, you get rock-solid performance, compile-time type checking, and a very high-level language.
虽然付出了这一点成本,但可以得到非常好的性能,编译时类型检查,以及一个非常高级的语言。
Of course, you also give up the safety net of the compile-time type checking.
当然,还会失去编译时检查的安全保障。
The downside is that the second version is harder to read, and is not protected by compile-time syntax and semantic checking.
缺点是,第二个版本是难以阅读,而不是保护的编译时的语法和语义检查。
Generics are useful because they provide stronger compile-time type checking, require fewer explicit conversions between data types, and reduce the need for boxing operations and run-time type checks.
泛型相当有用,因为他们提供强制的编译时类型检查,要求更少的数据类型之间的显式转换,并减少装箱拆箱的操作和运行时类型检查。
Generics are useful because they provide stronger compile-time type checking, require fewer explicit conversions between data types, and reduce the need for boxing operations and run-time type checks.
泛型相当有用,因为他们提供强制的编译时类型检查,要求更少的数据类型之间的显式转换,并减少装箱拆箱的操作和运行时类型检查。
应用推荐