3 ms·
Pretty much although it doesn't end up being quite as bad as it sounds. For example, your code wants to compare a string with some other object, if the other o
by smackeyacky 3y ago
Pretty much although it doesn't end up being quite as bad as it sounds.
For example, your code wants to compare a string with some other object, if the other object understands 'string' then the built in method for comparing two strings can work. Otherwise you get a #doesNotUnderstand exception.
Making arbitrary comparisons is a bit silly though, so in practice it doesn't happen very often.