develooper Front page | perl.perl6.language.flow | Postings from August 2000

Re: The distinction between "do BLOCK while COND" and "EXPR while COND" should go

From:
Bart Lateur
Date:
August 31, 2000 10:44
Subject:
Re: The distinction between "do BLOCK while COND" and "EXPR while COND" should go
Message ID:
766tqscvqh1gk1ul4p9dskl24sin9d2mb6@4ax.com
On Thu, 31 Aug 2000 11:21:26 -0600, Tom Christiansen wrote:

>One could argue that do{} should take return so it might have a value,
>but this will definitely annoy the C programmers.

So what.

"Annoying" would be to have a situation that is *less* powerful in Perl
than in C, not *more*.

Oh, and eval BLOCK and do BLOCK and bare statements in a file (not in a
sub) should allow return() too.

-- 
	Bart.



nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About