in reply to Re^11: Strong typing and Type Safety.A multilanguage approach (implicit)
in thread Strong typing and Type Safety.A multilanguage approach
How is explicitly using a monomorphic operator which operates on numeric values any less explicit than performing a manual conversion operation through a method?
The addition operator operators on scalars, not numeric values; you can pass it a string if you so desire. The operator must coerce the string into a number in order to do the addition.
The latter is explicit by definition. "Manual" is synonymous with "explicit".
Implicit conversion is less explicit than explicit conversion.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^13: Strong typing and Type Safety.A multilanguage approach (implicit)
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 20:04 UTC |