-
-
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 isa
to instanceof
?
#19524
Comments
Java also has |
Instance sounds more like it is related to classes to me. Personally I like |
Would be |
Just witnessed a room full of confusion about what |
Do you know what about it they found confusing? It's always seemed quite clear to me. |
I think people often confuse |
Deprecation of |
What I do want from time to time is an operator for |
I find |
If a = 1
if a isa Int
#do something
end which, seems pretty clear to me. |
I like the fact that most predicates begin with |
In another context, I used is followed by a kind of in anagram form: fourtytwo = "42"
isako( fourtytwo, Integer ) |
I can never remember the name of the I tend to write: |
Was the confusion about the behaviour or just how to read the function name? I wouldn't mind a change to |
I dunno. Probably not worth changing. I agree that the underscore rule can be annoying. @JeffBezanson hates underscores :P. I would be ok with using underscores and then just trying to delete all names that have them in Base over time. |
I've implemented the infix operator version of |
It should be more familiar to Python programmers and potentially less confusing?
The text was updated successfully, but these errors were encountered: