-
-
Notifications
You must be signed in to change notification settings - Fork 48
Explicit partial calls. #82
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
Conversation
|
This change was brought up by @sylvanc and discussed at last week's sync call, in case anyone wants to go listen to that recording for some further context as to why it's being proposed. |
|
Quick reaction, I like the idea of alternative 2 the most but before I really say much of anything, I'd like to discuss more fully at a sync sometime. |
|
@sylvanc is also favorable toward alternative 2 as well. However, I had the thought that alternative 2 might screw up the syntax @Praetonus' RFC about stateful exceptions #76. So that's something to consider. @Praetonus, maybe you can comment about those effects, and what the syntax might look like for RFC #76 if we adopt alternative 2 in this RFC. |
|
Just wanted to mention that when I did my project in Pony, not knowing which method was partial was enough of a problem that I started prefixing my partial methods with |
|
@jemc Yeah, that might be a problem. One nice effect of the current syntax for
Regarding this RFC itself and the two alternatives, I think leaving the |
|
After discussing on the sync, we all found the |
|
@sylvanc said he was tempted to merge this as is (abandoning alternative 2), but I wanted to make sure to check with @SeanTAllen first, since he wasn't present for the call, and had expressed a preference for alternative 2. |
|
@jemc i still prefer 2, but i seem to be in the minority. ¯_(ツ)_/¯. so i'm ok with it. even if its wrong. ;) |
|
Something to consider, syntax-wise here, is that both Rust and Ruby (and perhaps others) use the ? operator and have it at the end of the function call:
It may be worth considering familiarity with the ? coming from other languages. Also, with multi-line call chaining, the question marks in this chain stick out really nicely at the end of each line that may throw. |
Rendered.