in reply to Re: Re: Beyond Golf - reading between the tokens
in thread Beyond Golf - reading between the tokens
I thought of that too, but it does have some problems. Eval-string is very cheap in that accounting. print 'a'.'b'; is cheaper then print 'a','b'; (the former constant-folds to print 'ab';).
This is why print "a"."b"; is faster and more efficient than print "a","b";. I think it is *good* to have the former be less points.
When not using constants, it's a different story: print "a".$_; is 9 concise-lines while print "a",$_; is 8.
I think eval-string should be avoided anyhow, in a golf contest like this one.
|Replies are listed 'Best First'.|
Re: Re: Re: Re: Beyond Golf - reading between the tokens
by Anonymous Monk on Dec 28, 2002 at 23:37 UTC
by theorbtwo (Prior) on Dec 29, 2002 at 06:39 UTC