Re: NRE committed: PLEASE TEST




Miguel, Donal,

I'm very appreciative of these new features going in to the core, and
of your efforts. Tcl has such a clean look (to me) that I want to put
my input on the table early. I know that it is quite difficult to
hide some things due to Tcl's lack of syntax. Where other languages
have special constructs or know something special about a keyword, we
just have commands.

I see in the above example that you've moved the initial yield into
the body of the coroutine call to clear it out of the iota routine
proper, but I'm asking the more fundamental question, why have an
initial execution of the script passed to the coroutine command at
all? Why not just build the coroutine command immediately? Will this
feature be useful elsewhere?

When I initially suggested the possible usage :

while { [set x [iota 2 20]] } { puts $x }

I was going for the feeling of Icon, but I realized after I posted
that Tcl doesn't have the special value that Icon calls failure. The
"while { 1 } { set x [$iota] }" expression is almost as good but it is
less suggestive of what is controlling the loop termination.


Thanks,

John
.



Relevant Pages

  • Re: object oriented tcl
    ... You don't need OO to achieve object-like features in Tcl. ... Each API works on a user selected variable in the ... TclOO provides the object in this case, ...
    (comp.lang.tcl)
  • Re: Tcl/Tk debugger
    ... we realized that the implementation of some new features was actually ... If you need to debug TCL, ... assure you it is possible to set a meaningful breakpoint ... if {$cmd eq "c"} break ...
    (comp.lang.tcl)
  • Re: Is it time for another Tcl/Tk book?
    ... (Brent Welch doesn't really get into any of these...) ... Latest features of tcl8.5 ... extensions. ... work planned for Tcl 8.6, so I don't know if anything could be done ...
    (comp.lang.tcl)
  • Re: Goodbye TCL (not): my OO proposal
    ... Artur Trzewik wrote: ... >>I have been reading that extensive and very interesting thread. ... > The spirit of Tcl must exists in such OO. ... > Without such features one can use Java or C# ...
    (comp.lang.tcl)