(.) is broken #206

Closed
quarterto opened this Issue Nov 8, 2012 · 6 comments

Projects

None yet

4 participants

@quarterto
Contributor
livescript -bc> (.)
(function(it){
  return function(it){
    return it[it];
  };
});
@quarterto
Contributor

I'd expect more like this:

curry$(function(x$,y$){
    return x$[y$];
})
@vendethiel
Contributor

Edit : whoops. read code now ;)

@quarterto
Contributor

When partially applied, yes. Unapplied, the it is shadowed, making it useless.

@quarterto
Contributor

"Why do we need (+)? (+) a b is just a + b."
"Why do we need (<|)? (<|) a b is just a b."

@michaelficarra
Contributor

+1 @quarterto. The it shadowing is a bug. Suggested compilation LGTM.

@vendethiel
Contributor

Ah - didn't even noticed the innershadowing. That's definitely a bug

@gkz gkz added a commit that closed this issue Nov 13, 2012
@gkz fix (.) - closes #206 ca2ee69
@gkz gkz closed this in ca2ee69 Nov 13, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment