From: Jim I. <ji...@ap...> - 2000-10-30 19:30:54
|
On 10/30/00 11:06 AM, "Jeffrey Hobbs" <jef...@aj...> wrote: >> From: Jim Ingham [mailto:ji...@ap...] > ... >> Find is necessary, it is just in the wrong place because of the need not to >> patch the info command. > > OK, so the only correct way to add it to the core, if that's what you want > to do, it to subsume it all into 'info' again. Yes. > >> Body is VERY CONVENIENT. It is NOT an implementation detail. It allows you >> to write easy to read and develop Itcl code, by separating the interface and >> the implementation. >> >> class Foo >> { >> # Declare the interface >> method bar {args} {} >> } >> >> # Now define the implementation... >> body Foo::bar {args} { >> #Insert code here. >> } > > I'm not seeing why a smarter 'proc' command isn't appropriate here... See my response to Eric. The "smarter" proc would, I think, be confusing. > >> ... But I do think >> we should resist the temptation to redesign it at this point. We don't have >> the time to do this well right now, and just shuffling stuff around for the > > I think we should really be resisting the temptation to half-ass it. > This isn't some product we're squeezing out the door, it's a language. > If we don't have the time to do this well now (which I don't agree with), > then we shouldn't even be arguing this at all - everybody can just use > itcl as a package. This is the future of Tcl we are talking about. > Let's do it right. > Things in the software world are seldom "done right" by sitting in front of a whiteboard and sketching out a design. That is the way to get something that is 2/3 right, and 1/3 infuriatingly wrong. The way to do it "right" is to go through the whiteboard exercise, put out a 1.0, figure out what you did wrong, put out a 2.0, work on it some more... I contend that Itcl has gone through these stages of development for quite a few years now. It has a few bugs and some places where it needs optimization. But the Tcl interface - except for the concessions made to get out of the "info" command - is quite mature, has been worked very hard for a large number of substantial projects, and has "stood the test of time". With the experience of a long-time user AND one who has spent a couple of years teaching the thing to other users, I don't see any glaring areas that need improvement. When we had the long discussion on the newsgroup some months back, there were no substantial improvements suggested to the API either. By including Itcl, moved out of the itcl:: namespace, and with the find commands moved BACK into the info command where they belong, we ARE, IMNSHO, "doing it right". Jim -- The TclCore mailing list is sponsored by Ajuba Solutions To unsubscribe: email tcl...@aj... with the word UNSUBSCRIBE as the subject. |