Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

comment on

( [id://3333]=superdoc: print w/replies, xml ) Need Help??
Howdy!

-- for lame anonymous reply.

I have yet to see a situation where required, consistant block indenting causes anything more than the most trivial problems. I've been using it (and about 15 other languages) for years.

...long lines that you want to split and indent further? I can see that causing issues that I would not characterize as "trivial".

Oh, consistancy is not all its cracked up to be. It can be a straightjacket. It may make learning easier in the early stages, but can impede advanced learning. Too much consistency can leave the language without enough conceptual texture. If everything works the same, how can you tell the difference. I don't recall where I saw the mention, but it was noted that natural languages have the most inconsistency in some of the most heavily used portions. Consider irregular verbs. Which ones are most commonly irregular? "to be" is frequently wildly irregular and is probably the most heavily used verb.

Perl may be excessively flexible, but you are not required to use all the flexibility. As chromatic noted, discipline is key to the appropriate use of flexibility.

yours,
Michael


In reply to Re: Re: Mandatory indenting by herveus
in thread Mandatory indenting by Juerd

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post; it's "PerlMonks-approved HTML":



  • Are you posting in the right place? Check out Where do I post X? to know for sure.
  • Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
    <code> <a> <b> <big> <blockquote> <br /> <dd> <dl> <dt> <em> <font> <h1> <h2> <h3> <h4> <h5> <h6> <hr /> <i> <li> <nbsp> <ol> <p> <small> <strike> <strong> <sub> <sup> <table> <td> <th> <tr> <tt> <u> <ul>
  • Snippets of code should be wrapped in <code> tags not <pre> tags. In fact, <pre> tags should generally be avoided. If they must be used, extreme care should be taken to ensure that their contents do not have long lines (<70 chars), in order to prevent horizontal scrolling (and possible janitor intervention).
  • Want more info? How to link or How to display code and escape characters are good places to start.
Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others learning in the Monastery: (7)
As of 2024-03-28 22:00 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found