anko / eslisp

un-opinionated S-expression syntax and macro system for JavaScript
ISC License
528 stars 31 forks source link

Rework `.`-macro to support computed member exprs, remove `get`. #14

Closed anko closed 8 years ago

anko commented 8 years ago

Details in a0fa525. Fixes #13. Breaks API, so would be a minor-version bump.

@tabatkins :+1:?

anko commented 8 years ago

Still needs appropriate changes to docs and doc-tests before merge, but this is what it would functionally look like.

anko commented 8 years ago

Some relevant gitter chat about this here and here.

anko commented 8 years ago

Having played with this for a while, I'm having second thoughts. I'll summarise.

Points in favour:

Points against:

anko commented 8 years ago

After much further deliberation detailed in the above comment and the original issue #13's closing comments here, I've concluded that these changes are unworkable.

If the described behaviour is of particular importance for some use-case, it could be implemented by a user macro.