Replies: 1 comment
-
I think this is a great idea; I would like to support more general monoidal products. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
In
there's an implicit duplication of the input value. Did you consider making it explicit by introducing a strict monoidal product and functions
dup
anddrop
?So this example would be something like
or with infix sugar
This allows working with affine or linear types (you just don't allow using
dup
ordrop
for them). Also, it makes the language closer to a concatenative language (there's an example what a concatenative language can feel like: https://suhr.github.io/wcpl/intro.html).Beta Was this translation helpful? Give feedback.
All reactions