News for hackers. Stuff that matters.
Re:Hacker Typer: How To Look Insanely Busy In A Coffee Shop ... by conradev on Saturday December 07, 2013 @01:39AM (#6865741)
I've seen it used a lot in Objective-C for default values:

    NSNumber *value = dict[@"key"] ?: @1;
Re:Hacker Typer: How To Look Insanely Busy In A Coffee Shop ... by cpeterso on Saturday December 07, 2013 @01:58AM (#6865783)
?: is the "Elvis" operator.
Re:Hacker Typer: How To Look Insanely Busy In A Coffee Shop ... by adamnemecek on Saturday December 07, 2013 @02:01AM (#6865788)
That's pretty a hilarious name for it. Is this from the Groovy community?
Re:Hacker Typer: How To Look Insanely Busy In A Coffee Shop ... by vorg on Monday December 09, 2013 @01:50AM (#6873130)
The standard name is the "Null-coalescing" operator, see http://en.wikipedia.org/wiki/Null_coalescing_operator .

It's only called "Elvis" in Groovy. The name was announced one day by its Project Manager as part of a marketing campaign to make the name "G-String" mean a string on Elvis's guitar instead of a revealing item of clothing.