GBL-3820 Var with Style: Local Variable Type Inference in Java 10 | Devoxx

Devoxx Belgium 2018
from Monday 12 November to Friday 16 November 2018.

   Var with Style: Local Variable Type Inference in Java 10

Conference

Java Language
Java Language
Intermediate level
Room 5 Thursday from 09:30 til 10:20

Java 10 introduced a feature called Local Variable Type Inference, which lets programmers declare local variables using 'var' instead of using an explicit type. This feature enables one to write code that is more concise and more readable. However, it's also possible for this feature to be misused, obfuscating code instead of making it more readable. The Java Team has published a set of style guidelines that help direct programmers toward uses of 'var' that improve code quality and that help them avoid uses that detract from code quality. This session gives an overview of the new 'var' feature and describes these style rules. The presentation is liberally supplemented with code examples of both good uses and misuses of 'var'.

Java 10   Java Type System   Java Language   programmer use cases  
Subscribe to Devoxx on YouTube
Stuart Marks
Stuart Marks
From Oracle

Stuart Marks is a Consulting Member of Technical Staff in the Java Platform Group at Oracle. He is currently working on a variety of JDK core libraries projects, including Collections, Lambda, and Streams, as well as improving test quality and performance. As his alter ego "Dr Deprecator" he also works on the Java SE deprecation mechanism. He has previously worked on JavaFX and Java ME at Sun Microsystems. He has over twenty years of software platform product development experience in the areas of window systems, interactive graphics, and mobile and embedded systems. Stuart holds a Master's degree in Computer Science and a Bachelor's degree in Electrical Engineering from Stanford University.


Sign-in
Make sure to download the Android or iOS mobile schedule.