-
-
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
isXXX
methods and integer_valued
#3054
Comments
I like all of these ideas, although it's a pretty substantial change. |
Revisiting this, it now seems reasonable to only have |
To clarify-- |
Yes. |
+1 |
I should point out that the current
This usage matches that of Matlab and Octave. Arguably, such a function is not very "Julian" anyway, in that if you want different behaviour for an integer array, this should be defined at dispatch, and not within a function. |
I just did a quick scan through base:
|
I guess this can get filed under bikeshedding, but should
integer_valued
(andreal_valued
) have anis
prefix (likeisfinite
)? There is alreadyisinteger
(testing for an integer type), so should it beisintegervalued
?On a related note, the naming of the
isXXX
methods are somewhat ambiguous: some are determined by values (e.g.isfinite
,isempty
,islower
,iseven
,issym
), and some are determined by type (e.g.isinteger
,isreal
,isbool
): perhaps the type ones would be clearer asisXXXtype
?The text was updated successfully, but these errors were encountered: