-
Notifications
You must be signed in to change notification settings - Fork 211
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
Basic examples not working #750
Comments
It looks like the arguments to let bb8 = (new Droid('BB-8', 'orange'));
console.log(bb8.beep()); |
Hello @gabejohnson Seems that you know how to workaround the possible problems that could emerge. Could you please help me building a very simple macro ? I just want to simulate the apply operator from haskell. So: add $ 1 2
// becomes
add (1) (2) I made several attempts, but none of them succeed compiling. |
@danielo515 You're going to need to use the This is what I came up with operator $ right 0 = (left, right) =>
#`
${left}(${right})
`;
log $ 1; // log(1); You're not going to be able to support something like |
@gabejohnson "space" does not play in precedence resolution, right? |
@vendethiel not certain what you mean, but the space b/w |
Hello @gabejohnson , |
Hello,
Taking several of the basic examples and trying to run them on the online editor produces errors.
For example:
yields the following error:
Same thing happens if I install sweet from npm and try to compile it.
I also tried to build a basic macro, but I'm only getting errors related to unknow objects to JSON.parse and that stuff.
The project seems to be a great potential, but I think it does not play well with the latest JS features like spread operator and template literals.
Regards
The text was updated successfully, but these errors were encountered: