biscuit icon indicating copy to clipboard operation
biscuit copied to clipboard

Type casting / parsing operations

Open divarvel opened this issue 2 years ago • 0 comments

We could introduce parsing operations, allowing to try converting strings into numbers, or JSON strings / bytearrays into map / arrays.

This would require null (#148) for parsing failures, but could give more flexibility)

syntax ideas

  • as keyword. readable, but would make the grammar more complex
  • as_xxx() methods. a bit less readable and a tad more ad-hoc, but integrates nicely with the grammar

divarvel avatar Oct 10 '23 09:10 divarvel