-
Notifications
You must be signed in to change notification settings - Fork 0
eval-syntax #74
Copy link
Copy link
Open
Labels
data bindingEverything related to data bindingEverything related to data bindingenhancementNew feature or requestNew feature or requestexperimentalBreaking changes can happen at any timeBreaking changes can happen at any timepriority: lowLow hanging issue. Might not worth to tackle it now.Low hanging issue. Might not worth to tackle it now.
Metadata
Metadata
Assignees
Labels
data bindingEverything related to data bindingEverything related to data bindingenhancementNew feature or requestNew feature or requestexperimentalBreaking changes can happen at any timeBreaking changes can happen at any timepriority: lowLow hanging issue. Might not worth to tackle it now.Low hanging issue. Might not worth to tackle it now.
Expose an eval syntax. Similar to
new Function()(used by AlpineJS) oreval()but doesn't expose global variable and Web API. Also no new variable creation a.k.aletorconst. No declaration, no statement, no loop. It just an expression. However, it may have ternary operation and range/slice bound.Some ideas:
Operator that exclusive for string, list/array, and vector/matrix are denoted in
[ops]. There's some ops-syntax borrowed from other lang.concat (inspired by Lua)
same as
scalar add on vector
same as
addition between vector
roughly same as
Note that to enter eval-syntax, the expression should be wrapped in
`()