3 ms·
umm is that supposed to show off Erlang? Maybe it's just me but for such a simple task that looks bad.
by va_coder 16y ago
umm is that supposed to show off Erlang? Maybe it's just me but for such a simple task that looks bad.
- daleharvey 16y agoit was just for completeness, certainly not to show off, however list comprehensions are virtually identical to python and much more comprehensible than the line noise introduced in ruby list comprehensions. the fact that this is called out twice as being "ugly" twice in comparison to the other examples auggests to me that erlang is called out as being ugly purely from hearsay as opposed to actually being ugly. (I do think erlang can be ugly, I also think thats its biggest strength, but I dont think this example is ugly)
- va_coder 16y agougly is subjective - an opinion.
- guygurari 16y agoerlang is called out as being ugly purely from hearsay I have no preconceptions about Erlang. I've never seen the opinion that Erlang is ugly, and your code above is the first Erlang I've ever seen. I also know nothing about Haskell, but I found the Haskell example to be the most elegant. So, a more reasonable conclusion: The fact that two people found the code ugly suggests that it is ugly.