Chayim Refael Friedman
Chayim Refael Friedman
Python uses `in`, and probably other languages too. Do you have an example of languages that uses an operator (preferably mainstream)? If not, the cognitive overhead will be probably too...
Rust disallows the use of those codepoints without escaping in code since 1.56.1, which is a fairly good solution IMHO to the problem.
This is probably right, and editors do (some, at least) provide options to control that, but the reality is that many (like GitHub reviews, for example) don't, and not everyone...
You can extend only one class - but you can overload `is(_)` (though I claim that `is` overloading is broken and should be inverted). Also, I think this is wrong...
This API is very limited. I would provide `getMethods()` and `getMethod()`, at least.
I'm well aware and think about solutions. The simplest one would be to create a `Fn` on-the-fly, but it would be costly. I look for another way.
Shouldn't the static `hasMethod()` be private (`hasMethod_()`)?
Then it should be on `Reflect`, isn't it? **Edit:** Also, I think `Reflect.call()` is not a descriptive name.
I can argue of that, but I think it's matter of somewhat personal preference.