|
From: Eric B. <er...@go...> - 2001-08-11 20:18:41
|
Christian Couder wrote:
>
> And put_new_line like features are awfull too because it means that
> every time you add a "put_string" or an "append_string" like feature to
> a class you should also add a special case "put_new_line" or
> "append_new_line" feature to the class.
What about:
put_line ("Hello world!")
instead of:
put_string ("Hello world!")
put_new_line
? It looks symmetrical to the `read_line' routine
to me: the string doesn't include the line-separator
but it is actually there in the file.
> It's also much shorter to type " + eol" than "io.put_new_line" on a new
> line or something like this.
But it creates an extra string object at run-time.
--
Eric Bezault
mailto:er...@go...
http://www.gobosoft.com
|