std.typecons.Flag -- public import for API users?
ketmar via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Sat Mar 21 19:52:41 PDT 2015
On Sat, 21 Mar 2015 23:16:37 +0000, rcorre wrote:
> If I am developing a library and some of my functinos take a
> std.typecons.Flag as an argument, should I 'public import std.typecons:
> Flag, Yes, No'?
>
> It seems like it would be a pain for users of the library to have to
> import this separately whenever they use my library, but I'm not sure
> what the stance is on having your modules `public import`
> standard-library modules.
>
> In general, is it considered bad form to 'public import' modules from
> phobos?
i believe that there is nothing wrong in such public import in this
particular case.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: not available
URL: <http://lists.puremagic.com/pipermail/digitalmars-d-learn/attachments/20150322/28e0d11e/attachment.sig>
More information about the Digitalmars-d-learn
mailing list