mitranim/jisp

Limited property notation support

Closed this issue · 1 comments

Right now, .dot and [bracket] notation has the following issues:

  • Can’t be used with string literals (fixed in 0.2.17)
  • Can’t be used with #n and (fixed in 0.2.18) # notation (NYI)
  • Can’t be used with lists that resolve to JS expressions (e.g. ((mystring.replace /-/ '_').trim))
  • Orphan property notation needs to be supported everywhere you can use the (get property) form (for instance, as arguments in macros) (fixed in 0.2.17)

In all of those cases, the current workaround is to use the (get object property) notation or chaining with (do object (.stuff)). ToDo fix.

Fixed fully (hopefully) in 0.3.0.