News for hackers. Stuff that matters.
Re:Java 8 Features by vorg on Friday May 30, 2014 @05:54PM (#7824304)
> in Groovy, the safe navigation and elvis operators

The elvis op is called the null coalescing op in other languages. [1] Groovy's promoter chose the elvis name to fit in with marketing the Groovy and G-String names.

PHP also uses the ?: symbol but other languages use different ones, e.g. C# uses ?? and Perl uses //

[1] http://en.wikipedia.org/wiki/Null_coalescing_operator

There are no comments on this comment yet.