-
Notifications
You must be signed in to change notification settings - Fork 51
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
Ability to bind variables to shapes #373
Comments
This indeed looks very handy! |
Hello, I advocate to reuse the existing syntactical style. The @jougs proposal misses for example the type of the tau. The syntax looks like C++ templates, but it is hardly related to it (and at least for me is confusing therefore). Thus, it is not possible to check the type correctness of the expression on the righthand side. I composed several alternative which (imho) don't have these disadvantages. However you can still make your own proposals.
or as an external block:
|
@DimitriPlotnikov: I like your suggestion |
@DimitriPlotnikov I think the proposition from @jougs had the advantage that the It indeed reuses the same structure as c++ templates, but I don't really see how anyone might confuse the two given the context... On the other hand, using the parentheses make it look as if Between all suggestions, I would thus prefer the one from @jougs , then your |
Alternatively, we could use other notations as |
We can use the one from @jougs, but then as:
|
In order to make
shape
declarations more generic and re-usable, I think it would be nice to support a new notation in addition to the existing notation. The new notation should allow to parametrize theshape
with one or more variables. Here is an example of what this could look like:@ingablundell, @DimitriPlotnikov, @Silmathoron
The text was updated successfully, but these errors were encountered: