When D is not nice

Jarrett Billingsley kb3ctd2 at yahoo.com
Mon Jul 7 09:37:09 PDT 2008


"Leandro Lucarella" <llucax at gmail.com> wrote in message 
news:20080707163413.GB17001 at burns.springfield.home...
> superdan, el  6 de julio a las 18:12 me escribiste:
>> > Those are the cases I find D not nice.
>>
>> yarp i concur. phobos oughtta have a function asStr that converts 
>> everything to string and concats. then you write:
>>
>> auto x = asStr("You pressed button ", i, " with your pinky toe");
>
>
> That sounds like a poor's man version of the python's built-in
> formatting capabilities:
>
> x = "You pressed button %d with your pinky toe" % i

What can python's formatting operator do that std.string.format cannot? 





More information about the Digitalmars-d mailing list