Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

comment on

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

Damn, I don't even have to say anything, I'll just quote you:

  1. In Python, a programming language that I don't like much
  2. I have no idea how Python's indenting rules are, and don't really want to know either.

So you don't even know the most basic points about something, but you dislike it nonetheless? Sorry kid, this doesn't cut it.

Is Python flexible enough?

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.

I wonder if Python people can hack up something to support curly delimited blocks in Python, without mandatory indenting.

Yes, we could. Very easily in fact, but we don't. Do you know why we don't bother? Consistancy. It's what Python has that Perl does not. It's what makes Python easier to learn than Perl. It's what makes Python easier to parse than Perl. It's what makes Python easier to test than Perl. It's what makes Python easier to maintain than Perl. It's what keeps me from having to worry about hiring programmers that write camel code for actual projects.

Perl has a lot of great features, but it takes providing multiple options too far. A language with less flexibility can be a very good thing.


In reply to Re: Mandatory indenting by Anonymous Monk
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 exploiting the Monastery: (3)
As of 2024-04-19 20:04 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found