22 Jan 2004 21:39
Re: newbie questions - standard loop & catch clause
Isaac Gouy <igouy2 <at> yahoo.com>
2004-01-22 20:39:28 GMT
2004-01-22 20:39:28 GMT
Michel, Stéphane, thanks for the quick replies.
> > for (val i <- Iterator.range(1,1000000)
> > while (i<=1000000){ ...; i=i+1; }
> the second one should be more efficient
Yes, I noticed that
And I guess that's the substance of my question.
I'm concerned that I would be mis-representing the language
if I write some silly demonstration programs and those
programs seem slower than other languages.
And yet, it feels like I would be mis-representing the
language if I write those programs using "while" when it
would be more natural to use the comprehension.
(Guess I'll "do the right thing" and not bother about
performance.)
best wishes, Isaac
__________________________________
Do you Yahoo!?
Yahoo! SiteBuilder - Free web site building tool. Try it!
http://webhosting.yahoo.com/ps/sb/
RSS Feed