Want to contribute? Fork us in GitHub!

We Got Rid of Object 'char'

Since version 0.23.6 of EO we got rid of the char object. We want to simplify the core of the language and believe that this object can be easily replaced with its actual representation, i.e. an array of bytes. Now, if you want to get a character, you can just use the string object instead. All of these examples are valid strings: "\u0123", "h", "\t", "\n" and "\07". We got rid of the string.char-at and bytes.as-char objects.

If you need to get one char from a string, use string.slice. And use bytes.as-string instead of bytes.as-char.

Please visit our paper to get more information.