From: Jacob L. <jy...@mo...> - 2003-12-12 16:38:35
|
Please don't encourage people to use it for nonlocal goto. If its too easy to use people will do that. Exceptions are supposed to be exceptional. The above would argue to make it something people have to make a slight effort to use, and then consider how to use -- i.e. put it in a separate package, and DONT bytecompile it, so that efficiency considerations are an important factor. --JYL >> * *#89 "Try/Catch"* - Why is this one languishing? > > I think the main point of controversy is whether such a command belongs > in Tcl's built-in set, or should be provided by another package. > > Tcl's API is rich enough that a C-coded extension can provide this > command. In Tcl 8.5, TIP 90 has removed any obstacles to even creating > the [try] command as a [proc], so there's no necessity argument in favor > of TIP 89. > > The two main arguments that would still support TIP 89, I think, are: > > 1) As a built-in command, it could be byte-compiled. > 2) As a built-in command, more people would use it, because there'd > be no issue of package-phobia to overcome. > > Regarding 2), I think the right answer is for people to get over their > package-phobia, but byte-compiling might be important here, and unless > there's a TIP nearly ready to go exposing byte compiling to packages, > that might be enough reason to push forward with TIP 89. > > The other issue that might arise in a reviving of TIP 89 discussion is > just the details of syntax, and all the corner cases of handling > exotic return codes, etc. There are a number of existing [try] commands > out there in one form or another, all slightly different, and there may > be disagreement about which practices to adopt. > > Finally, the implementation may need an update to handle return options. > > | Don Porter Mathematical and Computational Sciences Division | > | don...@ni... Information Technology Laboratory | > | http://math.nist.gov/~DPorter/ NIST | > |______________________________________________________________________| > > > > ------------------------------------------------------- > This SF.net email is sponsored by: SF.net Giveback Program. > Does SourceForge.net help you be more productive? Does it > help you create better code? SHARE THE LOVE, and help us help > YOU! Click Here: http://sourceforge.net/donate/ > _______________________________________________ > Tcl-Core mailing list > Tcl...@li... > https://lists.sourceforge.net/lists/listinfo/tcl-core |