Getting Rid Of Unused Variables (Finally) - Inside Java Newscast #46

preview_player
Показать описание
JEP 443 proposes to add unnamed variables and patterns to Java. With them, unused variables and patterns can be replaced by a single underscore, which helps writing readable and maintainable code.

_____ Chapters _____
0:00 Content Warning
0:09 Intro
0:53 Unused - The Situation
2:04 Unused - The Workarounds
2:51 Unnamed - The Solution
4:05 Unnamed - The Details
5:25 Patterns
7:32 Outro

⎯⎯⎯⎯⎯⎯ More Resources ⎯⎯⎯⎯⎯⎯

Tags: #Java #OpenJDK #InsideJava #JDK
Рекомендации по теме
Комментарии
Автор

I just stumbled onto your channel and listened to this as first video. I really like the format, it focuses on a single small feature so its not overwhelming, and you can learn something new during, for example, your break for breakfast. Subscribed

firestarter
Автор

I would ring the bell if this channel had only the Inside Java Newscast, but there are too many other shows I'm not interested in. Any chance this show gets an own channel?

kevingeorgkurzawski
Автор

I've loved this concept since Golang and I'm super excited it'll come to Java finally 🖤

xxxxx-lg
Автор

My somewhat love of scala is being made redundant one JEP at a time.

BrettRyan
Автор

I'd like to have a JEP so that instead of writing `if (r instanceof ColoredPoint(Point(int x, int y), Color c))` I can write `if (r instanceof ColoredPoint(Point(x, y), c))` as when we define the constructor for Point, we already say that the 1st arg is an int, the 2nd arg is another int. Similarly, with the ColoredPoint constructor, we already mention there that the 1st arg is Point, the 2nd arg is Color.

avalagum
Автор

hi
nice studio
but I think to complete the picture you need jalousie

alexandersmirnov
Автор

I am always enjoying these videos, but we can't ignore that everything which comes to Java already exists in Scala. I think, is it fair to say that, Java is copying features from Scala.

HarmeetSingh
Автор

In around 10 years of so, you will have copied all the features of Scala.

rokkralj
Автор

Love the idea, hate the syntax. I wish there were something less horrible than _. And yes I do realise this is [possibly the worst kind of] "syntactic sugar" wishful thinking.

lmj