Re:Why I absolutely love java
by va_coder on Tuesday February 08, 2011 @08:09PM
(#2195722)
umm is that supposed to show off Erlang? Maybe it's just me but for such a simple task that looks bad.
[ Parent
| on HN ]
Re:Why I absolutely love java
by daleharvey on Wednesday February 09, 2011 @04:33AM
(#2196921)
it 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)
erlang 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.