[I am new to ruby]

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).

* this makes it possible to do "auto-conversion" on input
   thus UNIX(lf) MAC(cr) DOS/WIN(cr+lf) internet(cr+lf) looks
   always the same to the user
   output is more dificult: defaults to platform, socket always cr+lf

* autoflush as default
   don't know actually, but wouldn't it be nice to make it the
   default (less surprise)?
   If I want to write huge data, usualy I know this in advance and can
   turn autoflush off anyway

* 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 <time> command]
   I could not find such a thing in Ruby (where to look?)

Thanks in advance
bw


_______________________________________________
Submitted via WebNewsReader of http://www.interbulletin.com