[suggestion] anonymous array declaration, relax object syntax (JS/Json syntax)
See original GitHub issueCurrently EE can evaluate anonymous object declarations:
x = new {a = 10, b = 20, c = 30}
property = value
is enforced in method InitSimpleObjet
(we should rename that to InitSimpleObject
). First part of this suggestion is to relax this syntax and allow customization (preferably in the way customization of new
works now) such as:
x = new {a: 10, b: 20, c: 30}
second part of this suggestion proposes support of JS-like anonymous array declaration (respecting c# new
initialization pattern), which would internally map to List<object>
:
x = new [10, 20, 30] // x[2] = 30
@codingseb do you think this would be possible to implement and of use?
Issue Analytics
- State:
- Created 3 years ago
- Comments:5 (5 by maintainers)
Top Results From Across the Web
Anonymous Array in Java
An array in Java without any name is known as an anonymous array. ... Syntax: new <data type>[]{<list of values with comma separator>};....
Read more >JSON Quick Syntax Reference
In Chapter 5 , you explore JSON arrays and their syntax and learn how to create arrays of data for JSON Object s...
Read more >Declaring and using a array of anonymous objects in C# - ...
This created a anonymous object with two properties, one being integer and another string. All good here, but how should I declare a...
Read more >More on MicroXML
Perhaps it would be easier to relax the rules on namespaces (possibly via some kind of declaration within the embedding HTML5) - but...
Read more >@teambit/legacy-bit-id | Yarn - Package Manager
Fast, reliable, and secure dependency management.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Great news @codingseb thanks for all the effort you are putting into this!
I already published an alpha version for v.1.5 from branch
MakeScriptEvaluationMoreFlexible
(See on nuget) to test some early features. We can test it here It already contains some cool script customization stuff and support Json syntax.Take note that it introduce some breaking changes with previous versions and some others breaking changes can still happend until the official 1.5.0.0 release For now there is no documentation for new features