Extending arithmetic
Robert Virding
robert.virding@REDACTED
Tue Feb 11 01:12:42 CET 2003
James Hague wrote:
> Robert Virding wrote:
>
>>Seriously though this would mean that "ABCD" + 32 -> "abcd".
>
>
> I think this confusion is already there:
>
> $A + 32 -> 97
> [65,66,67,68] -> "ABCD"
>
> (But I don't think it should be made worse by allowing arithmetic
> operations on lists.)
I know the lack of a proper character type is a Bad Thing! Unfortunately
it is not at all trivial to add, although it seems easy before you start
considering all the implications. Also compatibility would means a few
nasty compromises.
Robert
More information about the erlang-questions
mailing list