ExpressionEvaluator icon indicating copy to clipboard operation
ExpressionEvaluator copied to clipboard

[suggestion] allow remapping of "new"

Open lofcz opened this issue 4 years ago • 2 comments

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>();

lofcz avatar Jan 21 '21 20:01 lofcz

I will do it with #73 and it will be part of the next "Script customization" version of EE

codingseb avatar Jan 22 '21 07:01 codingseb

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.

TheoVC avatar Jun 29 '21 18:06 TheoVC