Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

(.) is broken #206

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

Comments

Projects
None yet
4 participants
@quarterto
Copy link
Contributor

quarterto commented Nov 8, 2012

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

This comment has been minimized.

Copy link
Contributor Author

quarterto commented Nov 8, 2012

I'd expect more like this:

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

This comment has been minimized.

Copy link
Contributor

vendethiel commented Nov 8, 2012

Edit : whoops. read code now ;)

@quarterto

This comment has been minimized.

Copy link
Contributor Author

quarterto commented Nov 8, 2012

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

@quarterto

This comment has been minimized.

Copy link
Contributor Author

quarterto commented Nov 8, 2012

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

@michaelficarra

This comment has been minimized.

Copy link
Contributor

michaelficarra commented Nov 8, 2012

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

@vendethiel

This comment has been minimized.

Copy link
Contributor

vendethiel commented Nov 8, 2012

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

@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
You can’t perform that action at this time.