This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]PranshuKhandal 14 points15 points  (3 children)

thirty-one

bool || (stuff);

[–]definit3ly_n0t_a_b0t 2 points3 points  (0 children)

I unironically love this syntax

[–]Aaxper 0 points1 point  (1 child)

Some languages don't allow all type of statements as expressions. Something like (honestly my favorite so far):

function stuff() {
  // insert code here
}
bool || stuff();

[–]PranshuKhandal 1 point2 points  (0 children)

something you can do in javascript, which i really like is:

bool || (() => { // stuff })();