On Wed, 13 Sep 2000 12:00:49 +0100, raptor wrote:

>I was thinking will it be good if the braces are used but not required for
>ops like while, until, if, unless ...etc... what I have in mind :
>
>if  $x > 10 print $x;
>work as
>if ($x > 10) {print $x};

Eek! No! This is one of the things that I consider vastly superior in
Perl's syntax, compared to C. In C, you can have ambiguities, like the
"dangling else", which are simply nonexistent in Perl.

Even without technical being an ambiguity, there are situations where
you can easily misread, think that some expressions are in the if or
else body, while they aren't; or vicie versa.

You are being lazy in the wrong place.

-- 
        Bart.

Reply via email to