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.
[ Parent
| on HN ]
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.