Phango

Lars Ivar Igesund larsivar at igesund.net
Sat Nov 17 14:13:50 PST 2007


Janice Caron wrote:

> On 11/17/07, Lars Ivar Igesund <larsivar at igesund.net> wrote:
>> >> Will both libraries adopt the same style (naming conventions,
>> >> capitalization, etc...)?
>> >
>> > I surely hope so. ++myVote
>>
>> You understand that that would mean Phobos gaining Tango's style?
> 
> Oh I don't think so. Walter is quite clear that module names should be
> lowercase, and I agree with him. And (apart from Tango) I think it is
> "the norm" to name classes in titlecase and variables in lowercase.

Well, there are many using this style because W says/said it's standard.
That doesn't really mean it's the norm, neither that it is better than any
other style.

> Tango is just plain weird in giving variables names like "Stdout".
> That's just perverse. Just because it's a global variable doesn't mean
> you can go all titlecase.

Are you sure you understand the meaning of the word weird?

> 
> I kid you not - if Tango used "normal" case conventions, it would have
> a lot more adherents.

Wow, you certainly know a lot.

> 
> In any case, I am currently crafting my own personally bastardised
> version of Tango. I've already got a significant fraction of it
> compiling under D2.007 (including Phobos), and yes I renamed all the
> module names to lowercase. And I'll probably make "Stdout" merely an
> alias for "stdout" too (etc.)

I am truly impressed at the effort you put into this.

> 
> Seriously - Tango's stylistic issues are a big turn-off. Tango
> folk,when you complete your integration with Phobos, please, please
> fix them.

Tango have very few stylistic issues, all of which should be gone pretty
soon. Have a feeling those aren't the ones you mean though... Phobos have a
few as it isn't entirely consistent with itself.

-- 
Lars Ivar Igesund
blog at http://larsivi.net
DSource, #d.tango & #D: larsivi
Dancing the Tango



More information about the Digitalmars-d mailing list