ExpressionEvaluator
ExpressionEvaluator copied to clipboard
[suggestion] allow remapping of "new"
This is a followup suggestion for #73. Now to instantiate, only standard c# syntax can be used (on right hand of expression):
myList = new List<int>();
Keyword new should be remappable (either as regex or string array) to keep consistency with recently added options to modify syntax of other constructs.
// my exotic syntax
myList = -> List<int>();
I will do it with #73 and it will be part of the next "Script customization" version of EE
I'm a fan of sticking to the c # standard. then you can know exactly what you can and cannot do. ( just googling it ). If not, things can be complicated and messy by having too many parameters, too many interpretations, too many requirements.