RFC: Can DefaultSignature compile-time conditional APIs be regarded "benign"?
José Pedro Magalhães
jpm at cs.uu.nl
Mon Nov 12 12:36:38 CET 2012
On Mon, Nov 12, 2012 at 9:44 AM, Roman Cheplyaka <roma at ro-che.info> wrote:
> * José Pedro Magalhães <jpm at cs.uu.nl> [2012-11-12 09:27:17+0000]
> > Hi,
> > I would prefer it if packages would use DefaultSignatures conditionally,
> > instead of creating new packages just to define a generic variant of a
> > function. In general, though, I think it's good practice to define the
> > defaults as separate functions (like `genericSize`) and export them, so
> > that those not using DefaultSignatures can still write an instance
> Do you propose exposing genericSize conditionally?
No; it should be exported in both cases (it doesn't harm exporting it even
when DefaultSignatures is supported).
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Libraries