Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re^4: Tabs vs Spaces lets give this a go

by Hue-Bond (Priest)
on Oct 08, 2006 at 19:24 UTC ( [id://577024]=note: print w/replies, xml ) Need Help??


in reply to Re^3: Tabs vs Spaces lets give this a go
in thread Tabs vs Spaces lets give this a go

You would need to be consistent and hence indent the conditional within every if-and-while-and-etc in the same way.

True but on the other hand, we can write:

sub my_uc { return uc shift; }

Or, since we do Perl:

$flag++ if $cond;

And few will complain that the body of the sub and the if isn't indented; so I guess the same applies for the conditions. I have indented conditions as shown here and consider this layout a good practice, be it with tabs or spaces. But there's no need to do it always.

--
David Serrano

Replies are listed 'Best First'.
Re^5: Tabs vs Spaces lets give this a go
by jbert (Priest) on Oct 08, 2006 at 21:16 UTC
    I was really addressing the idea that you could embed meta-information about nesting level via the use of tabs. If one subscribes to that idea, then it leads to the above conclusions and problems.

    I don't subscribe to that idea, so one-liners like the above are fine with me, but they might cause problems for the "tabs carry information beyond the simple fact of formatting or presentation" viewpoint.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://577024]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others taking refuge in the Monastery: (6)
As of 2024-04-19 20:33 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found