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
Unify differences between multi and multi sub
#1189
Comments
|
It defaults to |
|
Judging by plain multi case is less common. For the reasons of consistency we can edit such cases to full form. It is quite easy job too, if you have a good editor and some time on board. |
|
I think consistency in the docs is a worthwhile goal |
|
I do not agree. You don't learn how to deal with complexity by reading code that does it's best to hide it. If we prefer one style we should prefer the shorter version because lazyness is a programmers virtue. |
|
@gfldex Whether the docs show Programmers can learn complexity by reading real world code / books / tutorials. The docs should feel as if they're all written by one person, no? Hence unifying the comment styles, etc. |
|
So how about unifying on |
|
I just read in the docs that one reason why So someone at some time deemed consistency in documentation worthwhile. Whoever wrote that 😸 |
|
@WildYorkies, you can read #1024 (comment) - it explains the choosing of "-->" and there are more reasons: It is more universal(you can use it for constant values) and there are no plans about deprecation, TimToady likes it, etc. The consistency made only one thing in that issue: the issue was opened because of that. If the docs don't clearly say about possible deprecation and constant values, it is bad. Though, I take a peek now and as for me, it is still explained. About this issue itself. I'm agreeing with @awwaiid, we can use |
|
What about examples that are contrasting sub vs. method, e.g.: Also, what about 'proto sub'? should we also drop the sub there? (I can write a test for this, but would like feedback on these items first) |
|
WIP on the coke/multi branch |
|
Don't worry, I have already looked into your branch and did appropriate changes. |
|
@coke are you still working on this? Should we attempt to merge the branch? |
|
Haven't touched it in some time. I think the question from last August is still unanswered. |
Yes. |
In that case it would be better to leave them that way and either whitelist them in the test. |
|
Coming back here, and trying to summarize: a single form, "multi" or "multi sub/method" should be used in the "defined as" part of the docs. |
|
I'm checking @coke's branch and it seems to be about using |
Some code is like:
multi sub hello($name) {say "hi $name"}Other code is like:
multi hello($name) {say "hi $name"}I'm not sure what is going on here, but this is something that should be decided upon. I think
multi submakes sense because you always clarifymulti methodin classes. And yet, I've never seen aproto sub. I've only seenprotoby itself.Thoughts?
The text was updated successfully, but these errors were encountered: