-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
Possible remaming of num
and den
?
#19233
Comments
Sure, seems like a good idea. |
Where is the problem? There could not be more intuitive names for these functions. When your are working with rational types, it is only natural to look for something like Please keep the abbreviations. They are standard. |
I disagree, >>> from fractions import Fraction
>>> a = Fraction(16, -10)
>>> a.denominator
5
>>> a.numerator
-8 |
And Racket. |
Ruby also uses If anything, Julia appears to be the odd one out here. |
Add Haskell to the list for numerator and denominator. |
Ok, convinced. |
Could
num
andden
be renamed tonumerator
anddenominator
? These function names are very unintuitive, and general policy is to avoid abbreviations unless they're very standard.The text was updated successfully, but these errors were encountered: