[prev in list] [next in list] [prev in thread] [next in thread]
List: ruby-talk
Subject: Re: ruby if no input
From: Christian Szegedy <szegedy () nospam ! or ! uni-bonn ! de>
Date: 2002-10-04 14:48:02
[Download RAW message or body]
Kontra, Gergely wrote:
> Hi!
>
> I've seen a great idea in pike (not a big one, but helps beginners...)
>
> If you start the language without any file, and input is terminal, the
> interactive system should start.
>
> Any comments?
This is quite common (see e.g. hugs).
Ruby also reads from stdin if started without a file, this is of
course not too helpful for a beginner, but allows for using it as a pipe.
I think this is the optimal way a scripting language should behave.
Regards, Christian
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic