Does D have too many features?
Lars T. Kyllingstad
public at kyllingen.net
Tue May 8 10:03:09 PDT 2012
On Tuesday, 8 May 2012 at 16:35:05 UTC, foobar wrote:
> On Tuesday, 8 May 2012 at 14:59:43 UTC, Lars T. Kyllingstad
> wrote:
>> On Tuesday, 8 May 2012 at 14:48:27 UTC, foobar wrote:
>>> [...], what if I find it useful to use e.g. FORTRAN code,
>>> should the relevant functions also be in the stdlib?
>>
>> No, FORTRAN has absolutely nothing to do with D. C, on the
>> other hand, does. Both druntime and Phobos depend heavily on
>> the C stdlib. The GC uses malloc/free, std.stdio.File is a
>> wrapper around FILE*, etc.
>>
>> -Lars
>
> Irrelevant. For all I care druntime could be implemented in
> Klingon. That doesn't mean its API needs to include Klingon as
> well. That's called "encapsulation".
Um... so you don't mind the C/POSIX declarations being there, you
just want them to be private so you aren't tempted to use them in
your own code?
-Lars
More information about the Digitalmars-d
mailing list