[Haskell-cafe] language proposal: ad-hoc overloading
waldmann at imn.htwk-leipzig.de
Sun Aug 31 15:00:09 EDT 2008
> My proposal is to allow "ad-hoc" overloading of names;
+1, although ...
this could interact badly with the (still common?)
practice of leaving out type declarations.
(of course having allowed this in the first place
is another language design error :-)
when considering language changes (extensions),
we should carefully distinguish whether it mainly
helps readability or writability - and readability
should be the prime concern.
e.g. ad-hoc overloading will lead to less typing,
but more trouble reading.
often, the work of typing can be reduced by tools
(e.g. IDEs that know about the names that are currently in scope,
and are applicable for a particular type,
and can auto-complete them etc.)
in the particular case of writing M.* too often,
another option would be to have a local "unqualification"
of an import. Cf. C++: "using namespace", which can occur
in any scope, not just at top (module) level; or Ada: "use".
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 257 bytes
Desc: OpenPGP digital signature
Url : http://www.haskell.org/pipermail/haskell-cafe/attachments/20080831/feb59fe1/signature.bin
More information about the Haskell-Cafe