Thanks for the replies!

What I've also done in the past to bypass Nim's naming rules - eg, where and 
how you can use underscores, is to look for a utf8 unicode symbol that looks 
almost exactly like what I want to use.

eg in a direct transliteration of some python code:
    
    
    self._private = 123
    

Nim doesn't like the leading _ in _private, but I can search on a page like 
this:

[http://csbruce.com/software/utf-8.html](http://csbruce.com/software/utf-8.html)

And then eg, use an identifier like this (for instance), which Nim is fine with:
    
    
    self.⎯private = 123
    

Where ⎯ comes from the "u23A0" section.

So I could also - probably - as a horrible hack, use a replacement for the Q 
symbol, eg:
    
    
    const ԚUIT_SDL = ...
    

where the "Q" symbol comes from the "u0500" section.

...

If the symbols are too close/confusing for typing out later, I can also use 
alternative symbols, for eg naming like this:
    
    
    const ԾUIT_SDL = ...
    

Pretty awful hack though . 

Reply via email to