Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

comment on

( [id://3333]=superdoc: print w/replies, xml ) Need Help??
Sorry if I stepped on anyone's toes.

Not at all, I meant the "5 points off" bit as a joke :). I know a fair number of python programmers and I'd label about 60% of them 'zealots.' Mind you, I'd probably label about the same number of Perl programmers 'zealots.' Don't even get me started on Java programmers... ;-)

*chuckles* I'll try not to - I've had my own share of experience with Java zealots, although those who actually are Smalltalk zealots and just have to use Java at work even though they despise it deep in their hearts are even worse. ;)

Oh, and as far as having programmed in every language is concerned - I guess that's impossible.

Yeah, that was a trick. I really work for NIMH. Anyone who claimed they did know every single programming language has been committed (regardless of whether or not they were telling the truth ;).

You do? Interesting. :) Anyhow, I can see why these people end up with you (*especially* those were the claim is actually true). ;)

Anyhow, why do you think switch (or goto, for that matter) is a low-level language concept?

Mostly because I've found that using dispatch hashes eliminates the need for them. I'm sure there's still a couple good uses, but sometimes I wonder if when a feature is that abused it wouldn't be better just to eliminate it. Yes, it's catering to the lowest common denominator and It would probably annoy all those write-25000-lines-of-assembly-before-breakfast kind of programmers, but my sanity would greatly appreciate it :).

Mmmm, I can't recall any assembly that features a switch instruction right now, unless you want to count C in as assembly (which has been described as an optimizing macro assembler with automatic register allocation in the past *g*). Seriously, though, I think that switch isn't that bad really; not all uses of switch boil down to (admittedly horrible, yet strangely fascinating) things like Duff's device. Besides, the Camel says that the main reason for not including switch was simply that there were many alternatives, from labelled bareblocks to foreach loops and from cascaded ?: operators to hashes - nothing hints that the exclusion of a proper switch statement might have been made due to it being too abused (or too easily abusable).

But IMO, it's all TMTOWTDI anyway - and I encourage languages to give you enough rope to hang yourself with, since that also means you'll have enough rope to tie the most beautiful and elaborate knots.

Speaking of breakfast, gotta run. Have a nice day :)

Heh. Thanks, and the same to you! ^_^

--
mowgli


In reply to Re^5: There's a level in Hell reserved for ________ by mowgli
in thread There's a level in Hell reserved for ________ by dws

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 perusing the Monastery: (4)
As of 2024-04-24 18:39 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found