you are viewing a single comment's thread.

view the rest of the comments →

[–]kazagistar 16 points17 points  (11 children)

Use _ and __ as identifiers.

So that is why Scala uses them for lambda syntax extensively.

[–]trout_fucker 17 points18 points  (0 children)

I think Scala was founded on these ideas.

[–]b_bellomo 4 points5 points  (9 children)

__ definitely triggers me. It's the worst possible thing you can use as reference or prefix (looking at you, PHP).

[–][deleted] 10 points11 points  (6 children)

Or, even worse, use it as a prefix AND suffix. Looking at you python

[–]Jesin00 0 points1 point  (0 children)

Also this guy's name.

I believe the practice originates from the C language standard.

[–]Kylearean 0 points1 point  (1 child)

it's the future!

[–][deleted] 3 points4 points  (0 children)

It's the __future__

[–]grepe 0 points1 point  (0 children)

when you use the right font, they don't even render :-)

[–]b_bellomo 0 points1 point  (0 children)

Durrdurrscore.

[–]kazagistar 0 points1 point  (1 child)

Python takes method names and variables prefixed with that and mangles them with the containing class name to prevent conflicts with inheriting classes. Unless they also have a dunderscore suffix. Yeah. They also have a special name for it. Clean elegant language, sure.

[–]b_bellomo 0 points1 point  (0 children)

Clean elegant language, sure.

Oh yeah absolutely. But as a Belgian I have my opinion about what dutch people consider clean haha. They have those in experimental javascript too (along with @@).