mattbierner / khepri

ECMAScript derived programming language
http://khepri-lang.com/
MIT License
67 stars 3 forks source link

Currying Composed Unary Op Syntax #101

Closed mattbierner closed 10 years ago

mattbierner commented 10 years ago

Current syntax to curry two composed unary ops is:

(!) \> (!, ...);

The syntax

(!!, ...)

Would be a lot clearer.

At the very least, !! should be supported as it is fairly common.

mattbierner commented 10 years ago

Would also allow better chaining of non-computed member unary fn:

(.x.y.z);

However, some care must be taken so that (!! x) is evaluated to an expression, while (!!, x) is !! curried with x.