Extend javascript with symbol literals
Extend javascript with symbol literals
when symbol use is heavy - code gets peppered with lots of
Symbol.for(‘mySymbolName’)
borrowing from Lingo’s symbol literals, you can type instead
calling main(scriptText) will convert all occurances of symbol literals eg #symbolName to valid javascript Symbol.for(‘symbolName’)
currently experimental as needs much testing, currently fails if your javascript uses regular expression literals containing the # character