www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - Tango style question

reply 0ffh <frank frankhirsch.youknow.what.todo.net> writes:
There seems to be a lot of discussion about this,
especially about the capitalisation used.
Could this question not be answered with a script
that goes over all modules and changes the source
to fit the diverse preferences?

Regards, Frank
Nov 19 2007
next sibling parent reply "Jarrett Billingsley" <kb3ctd2 yahoo.com> writes:
"0ffh" <frank frankhirsch.youknow.what.todo.net> wrote in message 
news:fhrvlj$1ras$1 digitalmars.com...
 There seems to be a lot of discussion about this,
 especially about the capitalisation used.
 Could this question not be answered with a script
 that goes over all modules and changes the source
 to fit the diverse preferences?

 Regards, Frank

Then you have n different libraries which only differ by naming convention. You can't please everybody, at least not practically.
Nov 19 2007
parent Ary Borenszweig <ary esperanto.org.ar> writes:
Jarrett Billingsley wrote:
 "0ffh" <frank frankhirsch.youknow.what.todo.net> wrote in message 
 news:fhrvlj$1ras$1 digitalmars.com...
 There seems to be a lot of discussion about this,
 especially about the capitalisation used.
 Could this question not be answered with a script
 that goes over all modules and changes the source
 to fit the diverse preferences?

 Regards, Frank

Then you have n different libraries which only differ by naming convention. You can't please everybody, at least not practically.

<joke>Why not make D case-insensitive and also underscore-insensitive? That way anyone could use identifiers the way they like them. FooBar, fooBar and foo_bar would all be the same.</joke>
Nov 19 2007
prev sibling parent reply Christopher Wright <dhasenan gmail.com> writes:
0ffh wrote:
 
 There seems to be a lot of discussion about this,
 especially about the capitalisation used.
 Could this question not be answered with a script
 that goes over all modules and changes the source
 to fit the diverse preferences?
 
 Regards, Frank

Yes. Fragmentation! How do I use my Tango-in-phobos-style library when it depends on your Tango-in-Java-style library, and how does J Random Hacker use my library in his Tango-in-Pascal-style application? Unless you want this script to be widely distributed and to work with most or all libraries, that is, in which case it would all work, until we get good support for precompiled (statically or dynamically linked) libraries in D. The current convention, compiling everything all the time, would support this regime. Actually, I suppose that's only going to be a problem if you're using precompiled libraries that you didn't compile, or that you didn't convert before compiling.
Nov 19 2007
parent reply 0ffh <frank frankhirsch.youknow.what.todo.net> writes:
Christopher Wright wrote:
 Actually, I suppose that's only going to be a problem if you're using 
 precompiled libraries that you didn't compile, or that you didn't 
 convert before compiling.

Hehe, users of precompiled libs will have to take the blame on themselves. Also, of course nobody could expect the Tango staff to give support for the heretics, who'd have to care for themselves... =) Maybe it's getting time that there were some refactoring Tools for D, that'd make the problem easy (as long as you have all your source). Regards, Frank
Nov 19 2007
parent reply Robert Fraser <fraserofthenight gmail.com> writes:
0ffh wrote:

 Maybe it's getting time that there were some refactoring Tools for D,
 that'd make the problem easy (as long as you have all your source).

We've got men on the job!
Nov 19 2007
parent reply 0ffh <frank frankhirsch.youknow.what.todo.net> writes:
Robert Fraser wrote:
 0ffh wrote:
 
 Maybe it's getting time that there were some refactoring Tools for D,
 that'd make the problem easy (as long as you have all your source).

We've got men on the job!

Sheesh! I have totally overlooked this! Bad bad $me, $me needs to be punished! Really? That sounds fine! Any links? regards, frank
Nov 21 2007
parent Robert Fraser <fraserofthenight gmail.com> writes:
0ffh wrote:
 Robert Fraser wrote:
 0ffh wrote:

 Maybe it's getting time that there were some refactoring Tools for D,
 that'd make the problem easy (as long as you have all your source).

We've got men on the job!

Sheesh! I have totally overlooked this! Bad bad $me, $me needs to be punished! Really? That sounds fine! Any links? regards, frank

Well, it's a "planned" feature for Descent. But before we get any kind of refactoring, we need semantic analysis, which we're working on/debugging right now... so it might be a while. You can see the status over at: http://www.dsource.org/projects/descent http://www.dsource.org/projects/descent/browser/trunk/descent.core/src/descent/internal/compiler/parser
Nov 22 2007