Alternatively: character literals have been practically useless. While the implementation is neat, in practice, the Brainfuck example is the only piece of Riff code I've written that actually utilizes them. Also, most languages (especially high-level languages) don't support character literals delimited by single quotes, instead choosing to parse sequences in the form of 'abcdefg' as string literals.
However, while byte("c") is a suitable replacement for 'c', this only works for ASCII characters. Something like ord() needs to be implemented alongside this change.
Alternatively: character literals have been practically useless. While the implementation is neat, in practice, the Brainfuck example is the only piece of Riff code I've written that actually utilizes them. Also, most languages (especially high-level languages) don't support character literals delimited by single quotes, instead choosing to parse sequences in the form of
'abcdefg'
as string literals.However, while
byte("c")
is a suitable replacement for'c'
, this only works for ASCII characters. Something likeord()
needs to be implemented alongside this change.