Hi.
If we call gets(), the returned string is copied to a special variable
$_
Do we have such things for getc(), too?
Hi,
In message “Re: Question about getc”
on Tue, 5 Jun 2007 19:15:06 +0900, “Sun P.”
[email protected] writes:
|If we call gets(), the returned string is copied to a special variable $_
|Do we have such things for getc(), too?
No, implicit global variables are evil. I’d rather remove $_ in the
future.
matz.
I use global variables for golfing only… but please don’t remove $_!
2007/6/5, Yukihiro M. [email protected]:
2007/6/5, Sun P. [email protected]:
I use global variables for golfing only… but please don’t remove $_!
Sorry… I mean ‘implicit’ global variables
On Jun 5, 2007, at 8:55 AM, Sun P. wrote:
I use global variables for golfing only… but please don’t
remove $_!
This is probably a good argument for removing the variable.
James Edward G. II
On 6/5/07, Yukihiro M. [email protected] wrote:
matz.
Oooooh, I love it when matz talks like that!
http://talklikeaduck.denhaven2.com/articles/2007/06/05/money-is-the-root-of-all
–
Rick DeNatale
My blog on Ruby
http://talklikeaduck.denhaven2.com/
Hi,
Am Dienstag, 05. Jun 2007, 22:48:55 +0900 schrieb Yukihiro M.:
[…] implicit global variables are evil. I’d rather remove $_ in the
future.
I never use $_ in any ‘def’ed method but I use it in
every ‘-ne’/’-pe’ oneliner. Please keep it.
Bertram
On 6/5/07, James Edward G. II [email protected] wrote:
On Jun 5, 2007, at 8:55 AM, Sun P. wrote:
I use global variables for golfing only… but please don’t
remove $_!This is probably a good argument for removing the variable.
James Edward G. II
As both a dedicated Rubyist, and an astronomically high-handicap USGA
member, I’m all for getting rid of both $_ AND golfing from Ruby.
Golf is for getting away from the computer.
–
Rick DeNatale
My blog on Ruby
http://talklikeaduck.denhaven2.com/