3min chapter

Software Engineering Radio - the podcast for professional software developers cover image

Episode 465: Kevlin Henney and Trisha Gee on 97 Things Every Java Programmer Should Know

Software Engineering Radio - the podcast for professional software developers

CHAPTER

Java - Chapter Forty Three, Local Variable Type Inference

Since trava 11, there is local variable type inference in java. That's just a long way ofy ying that you can type v, a r instead of your type name on the left hand side. Some people think it's a bit like grovy's deaf, where you kindof have a kind of fluffy type, dynamic typing. But but it's not. If i can tell from the right hand what the type should be, i will use the right hand type rather than you having to literally type it two times on each side. The minute i start hitting the field level, it becomes a little more brittle.

00:00

Get the Snipd
podcast app

Unlock the knowledge in podcasts with the podcast player of the future.
App store bannerPlay store banner

AI-powered
podcast player

Listen to all your favourite podcasts with AI-powered features

Discover
highlights

Listen to the best highlights from the podcasts you love and dive into the full episode

Save any
moment

Hear something you like? Tap your headphones to save it with AI-generated key takeaways

Share
& Export

Send highlights to Twitter, WhatsApp or export them to Notion, Readwise & more

AI-powered
podcast player

Listen to all your favourite podcasts with AI-powered features

Discover
highlights

Listen to the best highlights from the podcasts you love and dive into the full episode