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

quick maps makes later IN unrecognized #195

Closed
vendethiel opened this issue Dec 31, 2012 · 6 comments
Closed

quick maps makes later IN unrecognized #195

vendethiel opened this issue Dec 31, 2012 · 6 comments
Labels

Comments

@vendethiel
Copy link
Contributor

coco -le "for a then b; a in b"
NEWLINE:\n ID:a THEN ID:b NEWLINE:; ID:a IN ID:b NEWLINE:\n

probably because @seenFor doesn't change

gkz/LiveScript#245

@satyr
Copy link
Owner

satyr commented Jan 1, 2013

Ow.

@vendethiel
Copy link
Contributor Author

Note that you have no further problem with that because you didn't enabled quick-post-for. was that intentional ?

@satyr
Copy link
Owner

satyr commented Jan 12, 2013

Yes, it's parsed differently from other loops, being a complement of the proposed *. operator and a variant of with.

E.g. you can directly dot-access it:

for [0 1 2]
  &*3
.concat 4 5

@vendethiel
Copy link
Contributor Author

Yes, this is really nice. Thought I could go a bit further tho.

for [0 1 2]
  &*3
|> &length

@goto-bus-stop
Copy link

This can get pretty nasty, eg in this toml parser.
Took quite some time to figure out why line ~100 was erroring, but it appeared to be caused by the for key => on line ~50. The solution was to put the of test in a new function and place it above line 50 (on line 43, to be precise), but it's a rather expensive error if you don't know what might be causing it :s

@satyr
Copy link
Owner

satyr commented Mar 2, 2013

Sorry about that. Will soon release 0.9.1 with the fix.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants