Hello @jean-emmanuel !
I was thinking about this deprecation is the future, and in fact, the #{} syntax has two benefits:
- more compact than JS{{}}
- implicit return value
The latter one is very useful for some cases, for instance if I put in a label:
#{
nb=1;
}
song_number_#{nb}
I can do:
song_nb_JS{{var nb=1; return nb;}}
, it works (curiously), but this is far less easy to read…
Would it be possible to have a shortcut for JS{{}} with implicit return value? like @() for instance?
Also, I noticed that this doesn’t work as expected:
JS{{return "aa";}}
JS{{return 1;}}
I would expect a computed value of aa1 or aa\n1, but is seems the value does not evaluate correctly.
are you deprecating formulas to get rid of MathJS dependency?
I totally understand this, but JS{{}} syntax doesn’t yet have all the features of formulas
Please tell us what you think
Thx