-
Notifications
You must be signed in to change notification settings - Fork 275
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Can we add some version of <<++~, <<+~, etc. that can see the old version without too much confusion? #39
Comments
As for
The main reason I haven't actually done this already is that of course, you'd want |
@orenbenkiki had a fair bit to say in a further reply on #36. |
More traffic over on #36. |
Moving the < to the far right hand side of the operator (past the ~ or =) might lead to consistent semiotics that doesn't collide.
But the result is a pretty ugly operator. |
We could just supply a single Then the user could use |
This would certainly be less intrusive than going over each and every <op~ and <op= operator (there is quite a list of these). It seems like a reasonable compromise... |
There are 4 commented-out test cases in hunit.hs demonstrating these operators that need to be re-enabled. You may use the opportunity to eliminate the comment about the uncovered use cases, given it is "decided" not to do the monadic modification operators. |
Good catch. Re-enabling |
Oren's wishlist included functions that can post-increment/multiply/append rather than pre-increment/multiply/append, showing us the old version rather than the new.
What semiotics would make sense for these operations? And can they be supported without adding undue complexity to the already baroque set of operators?
This was originally raised by @orenbenkiki in #36.
The text was updated successfully, but these errors were encountered: