DEV Community

Discussion on: Which programming language has the prettiest syntax?

Collapse
 
ben profile image
Ben Halpern • Edited

I most appreciate Ruby when I have to spend large amounts of time reading basically any other language.

I like the Erlang thing where . ends the routine as if it were ending a sentence. Of course, dot-notation being so pervasive makes it kind of impractical. But if I were making a language from scratch I might consider that as a way to be more language-like.

Example:

f({connect,_,To,_,_} = Signal, To) ->
    ...;
f(Signal, To) ->
    ignore.