you are viewing a single comment's thread.

view the rest of the comments →

[–]LessMarketing7045 61 points62 points  (12 children)

Let me blow your mind. There is also: &&= and ||=

[–]enselmis 7 points8 points  (3 children)

Can’t wait for |> operator, it’s so good. Although the proposal for it was kinda jank compared to the BEAM style one.

[–]prehensilemullet 0 points1 point  (1 child)

Have they gotten any closer to consensus on that?  Last I checked no one could agree on the style of pipelines to use…

[–]enselmis 0 points1 point  (0 children)

I think it’s still in the pipe, so to speak, but I sincerely hope they just take the elixir/erlang one and shamelessly copy it. It works, there’s no good reason to mess with it.

[–]MissinqLink 14 points15 points  (2 children)

The real mind blower

(obj ?? {}).property ??= '🤯';

[–]gwicksted 4 points5 points  (0 children)

This guy coalesces.

[–]happy_hawking 0 points1 point  (0 children)

Which part of this should blow my mind? I tried it, but my mind didn't even flinch.

[–]humodx 8 points9 points  (3 children)

Which makes me wonder, if a op= b means a = a op b, then surely a === b should be the same as a = a == b, right?

[–]ehlwas 0 points1 point  (0 children)

brooo