-
Notifications
You must be signed in to change notification settings - Fork 105
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
Consistently map function names to their "canonical" names #68
Comments
In GitLab by @sloede on May 28, 2020, 08:36 mentioned in merge request !57 |
In GitLab by @ranocha on May 28, 2020, 08:49
We can do that. The required changes seem to be
|
In GitLab by @sloede on May 28, 2020, 08:55 Ah, I forgot that my approach would also require external users to always use a Maybe we just use the long names for now and bench this discussion until we have settled on an approach for how to handle parameters in the future? |
In GitLab by @sloede on May 28, 2020, 09:43 changed title from Consistently map function names to {-its-} "canonical" names to Consistently map function names to {+their+} "canonical" names |
In GitLab by @sloede on May 28, 2020, 10:57 changed the description |
In GitLab by @gregorgassner on May 28, 2020, 11:28 In my personal opinion, the current version as in the merge request is fine for me! I do not mind to type initial_condition one more time. Imo, it makes it clear to read and that is good in my book. |
In GitLab by @sloede on May 28, 2020, 08:35
As a follow up to a discussion with @ranocha, I think we should use a consistent way to map function names to their canonical names for documentation/parameter file purposes.
Example
The function
initial_conditions_gauss_pulse
should be consistently be called eitherinitial_conditions_gauss_pulse
or justgauss_pulse
when referring to it in strings. That is, we want to either useand have
or
and have
Since for me, the
initial_conditions_
prefix is actual not part of the function name but is used to put it in a namespace, I prefer the second variant, as context alone should be sufficient to determine what kind of function it is. It reduces typing and feels more natural to me, similarly, I wouldn't say "I am Human Michael" but just "I am Michael" (unless I need to emphasize that I am not your machine overlord).The text was updated successfully, but these errors were encountered: