Right now, when you write something in the formula bar and press Enter
, one of two things will happen, depending on whether you prefixed it with =
:
- if you didn't, Mesh will run the contents of the formula bar through a series of regexes and try to transform your input into a JavaScript equivalent (string, number, percentage, date, etc).
- if you did, Mesh will defer evaluating that input by writing a function to that cell, with the stuff after the
=
as the return value. When another cell references that cell, the Mesh calc engine will then call that function and use its return value.
So:
2018-11-04
would be transformed intonew Date(2018, 11, 4)
=2018-11-04
would be written directly, in this case resulting in a calculation (returning2003
).