[M3devel] license..

Jay jayk123 at hotmail.com
Thu Jan 24 17:06:46 CET 2008


oh boy.. I'm slightly on the fence here but tend toward the fewer files answer.The open question to me is, is programming more type based or module based?
If your modules all have one primary type, then I claim it is really type based masquerading as module based.
 
Lately in C I have:
 
typedef struct Foo_t { .. } Foo_t;
typedef struct Bar_t { .. } Bar_t;
 
Bar_DoSomething(Bar_t* ...) { }
Foo_DoSomething(Foo_t* ...) { }
 
My code is all about types and not so much about "modules" or "facilities" or "subsystems".
The types may be groupable into much, but it seems a secondary thing.
 
I'm thinking of inventing a new programming language called Typo-3. :)
 
 - Jay



> Date: Thu, 24 Jan 2008 16:39:57 +0100> From: lemming at henning-thielemann.de> To: hendrik at topoi.pooq.com> CC: m3devel at elegosoft.com> Subject: Re: [M3devel] license..> > > On Thu, 24 Jan 2008 hendrik at topoi.pooq.com wrote:> > > On Wed, Jan 23, 2008 at 03:20:47PM +0000, Jay wrote:> > >> > > I'm not against licensing and all, but I dislike big banners *everywhere*, in every file.> > > One little file per directory I guess ok, still kind of obnoxious.> > > It's not up to me obviously, it's up to the original author.> > > We have it far from the worst, I realize. I have seen some humungous per-file banners.> > > The banners are often the vast majority of the file...> > > (all the more reason to smush files together :) )> >> > One of the things I hate about Eiffel is that every class has to be in> > its own file.> >> > Java is almost as bad. It doesn't formally have this restriction, but> > except for a few very local classes, you pretty well have to follow it> > anyway.> >> > I really like the way you can put multiple classes into one file in> > Modula 3.> > But you should not do so, because qualification gives more natural names> if the module name reflects the name of its main type. In anticipation of> generic modules it is also a good idea to call the main type T. I found it> good style, also in other programming languages, to setup one module per> (important) data type. Sooner or later there are enough functions in the> module to justify this separate unit.> 
_________________________________________________________________
Need to know the score, the latest news, or you need your Hotmail®-get your "fix".
http://www.msnmobilefix.com/Default.aspx
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://m3lists.elegosoft.com/pipermail/m3devel/attachments/20080124/7feb3521/attachment-0002.html>


More information about the M3devel mailing list