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
MOP ^add_method could be renamed as ^add-method #1292
Comments
|
It's not just add_method, I recall stumbling upon something else that wasn't low-level but had _ in it. Maybe we should generate a list of all things with underscores and take a look at things again. |
|
I think the last time I brought this up, jnthn felt it would be too disrupting. FWIW, I feel consistency is a bit more important, so I would be in favour of looking at this more deeply. Having said that, there may be other, more important things to look at as well :-)
… On 2 Dec 2017, at 12:41, Aleks-Daniel Jakimenko-Aleksejev ***@***.***> wrote:
It's not just add_method, I recall stumbling upon something else that wasn't low-level but had _ in it. Maybe we should generate a list of all things with underscores and take a look at things again.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or mute the thread.
|
|
yes, implement features, fix bugs and improve performance are important, while consistency is for long term development. we can at first list/sort our names, so that the next time we reach here, we don't have to start from scratch |
|
Types(classes and roles) are named in UpperCamelCase, which we just keep it. PHASERs are all in UPPERCASE.
and so on |
|
This topic has already been discussed to death. Despite that, there are still a small number of cases in We settled long ago on MOP methods and other parts of the compiler's internals sticking with
I invite anyone who feels
I'd rather we spend our efforts on those higher-level mechanisms, such that the need to use
Actually
Yes, please let's document the conventions that have been settled on over the years. Here's an initial suggestion, to expand on and flesh out:
|
Somewhat tangent to the original discussion, but I saw "naming" and "consistency" mentioned. I've been noting some of the language inconsistencies in hopes of ironing them out some day. Here's a list of the items concerning naming:
|
|
Initial naming conventions documented by Raku/doc@8f4b7c8 |
|
closed as not a problem. |
|
Transferring to problem-solving, even if we decided that it's not a problem. |
|
Ah. I forgot, again. Nevermind! |
Otherwise we might arrive where PHP is, mixing lots of name conventions.
So far we have named Type in UpperCamelCase, some of methods/varibles in kebab-case(is-prime), some of thoes in snake_case(has_accessor, get_value, set_value), some of those in lowercase(deepmap, roundrobin) and some(I cannot sort them neatly) in UPPERCASE. It might be helpful we keep consistency.
BTW, is there a report about rakudo name conventions? should we attempt to decide one?
The text was updated successfully, but these errors were encountered: