In Java 9, underscore was marked as a keyword. All blog posts just say that will throw an error when used. But for what reasons it was made a keyword, and what is the use of it now, or maybe in future?
Asked
Active
Viewed 79 times
0
-
lol. the duplicated post, does not answer my question )) – iamandrewluca Dec 09 '19 at 08:05
-
1The answer ist 'phase 2' mentioned in https://stackoverflow.com/a/51254912/4308751, no? – frifle Dec 09 '19 at 08:33
-
1The [accepted answer](https://stackoverflow.com/a/23525446/6395627) explains that `_` is reserved for possible future use. The [second answer](https://stackoverflow.com/a/51254912/6395627) explains one potential future use is for unused lambda parameters. Is that not satisfactory? Note that some of the comments in the duplicate Q&A also link to other related resources. – Slaw Dec 09 '19 at 08:33
-
Ok, thanks, didn't saw that! – iamandrewluca Dec 09 '19 at 09:06