-
Notifications
You must be signed in to change notification settings - Fork 0
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
Ed binop #86
Conversation
| Ast.Concat -> | ||
Cast.Call(Cast.Function("nh_support","concat"),[castx_of_sastx lexpr; castx_of_sastx rexpr]) | ||
| Ast.Chord -> failwith "Internal error: binop chord should have been converted to Call NhFunction in ast2sast" | ||
| Ast.Octave -> failwith "Internal error: binop octave should have been converted to Call NhFunction in ast2sast" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Potentially an unpopular opinion, but i think we should make a Sast binop that excludes Zip, Chord, and Octave. Reasoning:
- These runtime failwiths wil become compile time errors
- Conceptually more correct -- the operators
: @ ,
are just syntactic sugar for calling stdlib functions. So they should only exist in the ast, not the sast.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(And the same for uniop's flat and sharp)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I agree, but be aware that you are also giving me arthritis of the fingers.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ticketed as #88
fix 'n 🚤 |
) | ||
else throw "Cannot concat tracks with different key or time signature" | ||
} | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this crashes the parser.
could you comment it out, and change tabs to spaces?
No description provided.