in reply to Re^9: Strong typing and Type Safety.A multilanguage approach (implicit)
in thread Strong typing and Type Safety.A multilanguage approach
[ Flawed premise: I was working from an incorrect definition of coercion. ]
I agree; that's why I try to prefer the term "coercion". Coercion is not the same thing as conversion. How can you coerce the choice of operators if the operator is monomorphic? There can't be coercion for monomorphic operators since there is nothing to coerce.
There are two "=" operators, and you can coerce the choice of assignment operators.
but what's the difference between:
In one, you used ->to_int (explicit conversion), in the other you didn't (implicit conversion). No coercion occurs since neither subs nor the "+" operator are polymorphic in Perl.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^11: Strong typing and Type Safety.A multilanguage approach (implicit)
by chromatic (Archbishop) on Nov 22, 2010 at 04:08 UTC | |
by ikegami (Patriarch) on Nov 22, 2010 at 08:34 UTC | |
by chromatic (Archbishop) on Nov 22, 2010 at 17:37 UTC | |
by ikegami (Patriarch) on Nov 22, 2010 at 18:03 UTC | |
by chromatic (Archbishop) on Nov 22, 2010 at 19:14 UTC | |
| |
by ikegami (Patriarch) on Nov 22, 2010 at 08:31 UTC |