basilisp
basilisp copied to clipboard
Allow user-specified names for otherwise-munged symbol names
When generating Python code, Basilisp will automatically munge symbol names which cannot be represented as Python code. For example, the Basilisp symbol <=
becomes __LT____EQ__
since only the latter can be represented in Python as a symbol. However, if you plan to use that generated Python code from Python, this is pretty terrible looking. It would be great if we could generate allow def'ed symbols to specify an override like this:
(def
^{:python-sym "less-than-equal"}
<=
;; ...
)