-
-
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
Rename get_bigfloat_precision
, set_bigfloat_precision
and with_bigfloat_precision
#13225
Comments
Please! Of course, this also works for decimal float, maybe unums. |
@ScottPJones Yes, good point. |
get_bigfloat_precision
and set_bigfloat_precision
get_bigfloat_precision
, set_bigfloat_precision
and with_bigfloat_precision
You might need |
probably drop the underscores, readable enough as |
@tkelman I partially agree, but currently
|
The underscores do make it easier to read, there have even been studies on that (comparing camel case to separation with underscores to no separation). |
Studies or no, we don't use underscores on Base functions. |
|
I honestly have a hard time believing you said that.
113 functions that are exported, many many more that are not exported (but since there is no way of telling whether they are "private" or not, they very well may be used outside of Base), and that also didn't count macros with |
My takeaway from this discussion is:
I'll implement these in the PR, with no underscores for now. |
@ScottPJones: we would like to get rid of or rename all of those. Underscores are a sign of an old, crappy or inadequately designed API. By Julia 1.0 we should have eliminated most of them. In particular, we should not be adding more of them. |
Okay, I'm fine with this. Would you mind rebasing into one commit? |
The function names
get_bigfloat_precision
,set_bigfloat_precision
andwith_bigfloat_precision
are cumbersome and un-Julian.I suggest changing these as follows:
get_bigfloat_precision()
->precision(BigFloat)
set_bigfloat_precision(n)
->set_precision!(BigFloat, n)
or justset_precision!(n)
orprecision!(n)
with_bigfloat_precision(n)
->with_precision(n)
Cc. @simonbyrne @stevengj @jiahao
The text was updated successfully, but these errors were encountered: