-
Notifications
You must be signed in to change notification settings - Fork 56
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
Problem: macro expander doesn't like _
which we use for "I don't care about this"
#301
Comments
How would you feel about:
For me it's easy to miss adding or removing the Note that simple<->simple and array<->array don't need these, as they're unambiguous in their number of arguments. |
Yeah, in my current opinion, it's hard to read if it's a simple or array port. So instead instill the convention and pattern (
you know immediately it's a element of an array port. If you see
You know immediately it's a simple port. The simplicity of
Means you can quickly see what's connecting to what. For example:
Is an array port connecting to a simple port. When using your convention:
it's not immediately obvious is "single-malt" a node name or port element?
Now it's clear. I can't seem to read your In your example here:
What does an array port connecting to an array port look like? |
My main point is humans need predictable things, we need to teach a simple rule that reflects and transfers in spirit throughout each usage
another approach its always six, and you just drop out the element if it's not applicable.
|
Alright, I'm like +0 on Maybe down the road we'll figure out how to do |
On second thought, I'll keep this open and close it with the relevant PR. |
Actually by doing |
eg:
this code implies:
make a connection between node "card-display-out"'s "out" array output port on the element array "wsettings" and node "wsettings"'s "in" simple input port (as indicated by the "_")
.Yet the new semantics seems like it doesn't map from the previous usage.
What does this say?:
"Let's make a connection from "cardo-display-out"'s on the "out" ...
#:selection
... huh? what's selection? seems we're connecting an array port but how do we distinguish if the port to be connected to is a simple port or array port? there is no "_" to indicate it is a simple input port.So the new approach of using
#:selection
really gets confusing fast especially when the current approach isso the original verbose way:
becomes:
note the new
#:selection
this breaks with the expected usage patterns.Potentially using (2 "_")
__
won't break the macro expander. So:The text was updated successfully, but these errors were encountered: