Posted by : Deepak Vasudevan Friday, September 26, 2008

The Lovely Perl way of braces { }

In Perl programming language, it is always mandatory that even a single statement in a conditional block be encompassed within { } unlike C# and other programming languages where only multiple statements are mandated for the curly brace blocks.

But I would say, the Perl way is really excellent we should follow this strictly for other languages also. This makes our code look cleaner and neater. We know where the control starts and stops and would enable a cleaner debugging too.

Popular Post

Blogger templates

Labels

Blog Archive

Followers

Blog Archive

Powered by Blogger.

- Copyright © Lavanya Deepak -Metrominimalist- Powered by Blogger - Designed by Johanes Djogan -