Understand how to reveal types at compile time in high-level languages This book presents practical methods to determine the runtime types of objects during compilation, using SETL as a primary example. It explains how type information can speed code and reduce repeated work inside loops, without sacrificing flexibility in declaration-free languages. In clear, accessible terms, the work introduces a formal system for representing type knowledge and shows how to apply two complementary methods to infer types. It also covers implementing a typefinder in SETL and discusses how these ideas translate to languages with lower-level features. Real-world examples illustrate the kind of information that the typefinder can produce and how it can support optimization and safer program behavior.
Les informations fournies dans la section « Synopsis » peuvent faire référence à une autre édition de ce titre.