toString refactor in druntime

Steven Schveighoffer via Digitalmars-d digitalmars-d at puremagic.com
Tue Oct 28 05:37:43 PDT 2014


On 10/27/14 6:02 PM, ketmar via Digitalmars-d wrote:
> On Mon, 27 Oct 2014 17:04:55 -0400
> Steven Schveighoffer via Digitalmars-d <digitalmars-d at puremagic.com>
> wrote:
>
>> I think this is overkill for this purpose. We need something simple
>> to save a few lines of code.
> 18KB (even less) module which consists mostly of functional templates,
> generates nice string mixin and adds part of writef functionality and
> can convert nicely formatted strings and args to series of calls to any
> function is overkill? ok. who i am to teach people that metaprogramming
> is the way to automate boring things...

Meta has a cost with the current compiler. It would be nice if it 
didn't, but I have practical concerns.

> sure, i won't force anyone to use that, i can't take the pleasure of
> writing sink boilerplate calls from people.

I think a few simple functions can suffice for druntime's purposes. We 
don't need a kitchen sink function (pun intended).

-Steve


More information about the Digitalmars-d mailing list