A few notes on choosing between Go and D for a quick project

Nick Treleaven via Digitalmars-d digitalmars-d at puremagic.com
Tue Mar 17 04:48:14 PDT 2015

On 17/03/2015 10:31, Almighty Bob wrote:
> It's far more useful for csvReader to return a type I know and
> can use than it is to obscure the return type for the sake of
> some philosophical ideal of increasing encapsulation.

Part of the art of API design is to hide implementation where it's not 
necessarily needed. Designers might err on the side of hiding things, 
because how you expose something is important as it has to be maintained 
indefinitely. If they expose everything then the internals can never be 
redesigned for better performance, etc.

More information about the Digitalmars-d mailing list