-
Notifications
You must be signed in to change notification settings - Fork 43
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
A mini-DSL for Measures. #61
Conversation
This looks really cool !! |
I agree this is really nice. |
One issue, in places like arrows where we have to deal with measures separately we would basically have to rewrite |
Ah yes, making |
Any name suggestions? |
Though note that is somewhat orthogonal to this pull request; we already had |
Yes, true - but with only a few cases it didn't seem like a big deal to pattern match in arrows |
Right, I see. Potential names include |
I don't want to mess this up. here is what i have so far, what should change?
|
What's the point of the Also, I think (though I am not entirely sure) that we still need a type signature on the call to |
Also, minor bikeshedding, perhaps it would be better to rename |
The point of the case was so that You are correct we do need the type signature of the call to convert. |
A mini-DSL for Measures.
Ah, I see re: making |
Oh yeah thats true. I'll fix it. |
For an example, try this program:
Then try choosing various output sizes. The line width scales with the output size, until as the output size gets smaller, at some point the line width hits a minimum width of 2 pixels and doesn't go below that no matter how small the output gets.