Var-Auto Keywords

Back to Local Inference

Keywords like var (Java, C#), auto (C++), and val/var (Kotlin, Scala) that let the compiler infer the type from the right-hand side of an assignment. Reduces boilerplate while maintaining full type safety.

type-systems type-inference var auto