Philosophy of how OS API imports are laid out in druntime

Sean Kelly sean at invisibleduck.org
Thu Mar 6 16:30:15 PST 2014


On Thursday, 6 March 2014 at 23:56:35 UTC, Iain Buclaw wrote:
>
> Indeed, I don't recall a single port-related pull in the last  
> several
> months that tried to do any refactoring.  I think the general
> consensus among the current mantainers is that explicit 
> versioning is
> good, vague/fallback else is bad.  However on the flip side, 
> the more ports you add into one single file, the more you 
> descend back into the madness you were initially trying to 
> avoid.
>
> I hope code duplication in many files rather than one file is 
> in the interest of everyone. :)

Yep.  I think I mentioned in the github thread that while
versioning implementations within a single module worked for me,
it was because I was only targeting 3 platforms.  With the number
of targets GDC and LLDC have, I think breaking things up as you
suggest is a preferable option.


More information about the Digitalmars-d mailing list