Hacker News new | past | comments | ask | show | jobs | submit login

> 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




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: