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.
In reply to Re^12: Strong typing and Type Safety.A multilanguage approach (implicit)
by ikegami
in thread Strong typing and Type Safety.A multilanguage approach
by nikosv
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |