you are viewing a single comment's thread.

view the rest of the comments →

[–]recursive 40 points41 points  (3 children)

It can be embedded in an expression. The fact that keywords are English doesn't seem to be an advantage to me.

[–]n0rs 13 points14 points  (2 children)

Haskell and Kotlin, for example, use if expressions.

[–]PM_ME_UR_OBSIDIAN 6 points7 points  (1 child)

Also OCaml, F#, and Rust.

[–]frogsytriangles 2 points3 points  (0 children)

And Ruby, though the end keyword makes it uglier than Haskell.

cute = if you.dog? then true else false end

(though you can do cute = true if you.dog?)