Re:I don't like Python. Does that make me a bad person?
by carbon8 on Saturday June 26, 2010 @12:41PM
(#1463889)
The ruby examples don't behave the same as the python version since they use ARGF in place of stdin. They are also non-idiomatic. Here is a correct, idiomatic Ruby version:
or as a single 57 column line:
we can also use the match operator:
I'm inclined to assume that the other language examples are also suspect.
[ Parent
| on HN ]
There are no comments on this comment yet.