From: Wilbert Berendsen Date: 2001-04-27T16:43:32+09:00 Subject: [ruby-talk:14303] Re: Ruby vs. Tcl input/output question Yesterday at 2:11am, bw said: > [I am new to ruby] Me too, but (also) coming from Tcl > As far as I have seen, RubyIO just maps to UNIX system calls. > Maybe someone can comment on this: > > * line-buffering: gets() has \n at the end > so that 99% of all code looks like this: gets(); chomp() (from Perl?) > why not doing it like Tcl, strip the EOL on input > and add the EOL later at output (if needed). See other reply in this list. I like this. Lines are just strings, and concatenating them restores the original string (a file's contents). > * Tcl-Eventloop: > the greatest thing of Tcl is for sure the Eventloop which > combines File/Pipe/Socket readable/writeable-events AND Tk-GUI > AND 'decoupled callbacks' via [after