Voting: std.logger
Andrei Alexandrescu via Digitalmars-d
digitalmars-d at puremagic.com
Wed Sep 10 00:42:17 PDT 2014
On 9/9/14, 12:38 PM, Robert burner Schadek wrote:
> On Saturday, 30 August 2014 at 02:18:30 UTC, Dicebot wrote:
>> "... have noticed that all logging functions have file/line/function
>> data as template parameters. This will create insane symbol bloat.
>> While I can understand desire to use some nicer variadic argument API
>> providing at least one log function that it simplistic but moves all
>> compile-time data to run-time default argument is absolutely necessary
>> for me to consider this viable."
>
> I do not consider that a problem. The benefit is much higher than the
> cost of the bigger binary. This has already been a long conversation on
> some previous thread.
There may be a miscommunication here. In short:
void fun(int x, string f = __FILE__)(double y);
can be replaced with:
void fun(int x)(double y, string f = __FILE__);
Both work and the second produces fewer instantiations.
Andrei
More information about the Digitalmars-d
mailing list