News for hackers. Stuff that matters.
Re: Strangest language feature by mehrzad on Sunday March 24, 2013 @03:24PM (#5433171)
I think "[x]." returning a certain character when 7<x<256 is pretty strange. There's probably a reason for this, but I'm pretty new to the language.
Re: Strangest language feature by kragen on Sunday March 24, 2013 @06:17PM (#5434032)
It's that Erlang doesn't have strings or characters. It has string syntax on input, which turns into lists of small integers, and also on output. But under the covers, those apparent strings are just lists of integers.