If I have an identifier with a same name as existing keyword, how do I escape it?
How to escape identifiers in Boo?
202 views Asked by Andrey Shchekin At
2
There are 2 answers
4
On
I don't think anything like the C# @ prefix is implemented in Boo... but I'm pretty sure it could be achieved by inserting a custom compiler step to the beginning of the compiler pipeline.
That's what I found (and this is probably the final answer):
@
as a prefix in identifier names. However, by default it creates a different identifier (@a != a
).@
is allowed, it is possible to add a new compiler step to the pipeline that will doTrimStart('@')
on all identifiers. It works ok, you will just have to remember all types of things that have names.