Polishing D - suggestions and comments
Lars Ivar Igesund
larsivar at igesund.net
Sat Jan 26 12:36:16 PST 2008
Jason House wrote:
> Lars Ivar Igesund Wrote:
>
>> Jesse Phillips wrote:
>> > It is not related to the size or speed of the code, as Sean was
>> > questioning, but in the use. The best comparison I can think of is that
>> > it is like going from C to Java. (I'm not saying Tango is like java)
>> > The phobos library is very procedural, you you import your module and
>> > call your functions. Tango is Object based, import, create object/call
>> > object to do something for you. There is a sense of simplicity when you
>> > don't use objects. That is frankly one of the reasons I have not moved
>> > to Tango yet.
>>
>> I know there are a few places in Tango where an additional line may be
>> needed (and many where you'll need quite a few less), but without exact
>> examples of what people think is a problem, it is hard to make qualified
>> decisions on where to make improvements.
>
> Maybe I'm misusing the library, but I know I've had to create formatting
> objects (print!(char)?), even for common cases.
There is a global Layout instance in tango.text.convert.Format that defaults
to char -
Format.layout ("{0}", "first arg");
or if you already has imported Stdout
Stdout.layout (...);
--
Lars Ivar Igesund
blog at http://larsivi.net
DSource, #d.tango & #D: larsivi
Dancing the Tango
More information about the Digitalmars-d
mailing list