[erlang-questions] A proposal for Unicode variable and atom names in Erlang.
Richard O'Keefe
ok@REDACTED
Fri Oct 26 06:00:48 CEST 2012
On 23/10/2012, at 1:20 AM, Max Bourinov wrote:
> Hi guys,
>
> Just an idea: If you want to have Unicode in your code. There is always working solution that doesn't require to touch Erlang anyhow. You need to setup a pre-compile hook that will run kind off parse-transform tool (PTT) that will pre-process code and replace Unicode parts of ut to currently allowed set of chars. Of course in CRASH DUMPS you will see replaced atoms, but PTT can generate replacement table so, you can refer to the original Unicode value.
>
> Yes, it is not very nice build-in Unicode support, but you can implement it right now! :-)
Indeed we can. But let us implement *the same thing*. And to do that,
we need a specification of what Unicode identifiers should actually look
like.
Oh gosh, didn't someone just write one?
More information about the erlang-questions
mailing list