I think that has more to do with solving a given problem in more than one way, or using a different syntax (From the available ones) to solve a problem.

Sure. But don't forget that CPAN modules cound to "avlailable ones".

What I'm speaking is more on the lines of using 10 different ways of class declarations, or switch statement declarations, each one looking different than the other. Thats a lot different than the TIMTOWDI philosophy.

I don't see the difference at all.

Perl 5 has no class keyword, so people invent their own mechanisms, upload them to CPAN, and then there's more than one way to do it.

Over time, one or two prove to be universally useful (seems to be Moose), and emerges as a quasi standard.

And is not good either.

No? I like the result. I'm pretty sure Moose is better than what would have come out if p5p had decided to build the one true object system in perl 5 core.

Perl may offer flexibilities to use various kinds of syntax to solve a problem. But it provides only one way to write a particular syntax.

Really?

say $x if $x > 0; if $x > 0 { say $x; }

That's two ways to write an if. Does it hurt Perl?

But it provides only one way to write a particular syntax.

Even if it were true, that's still besides the point. Various OO modules use different ways to write something to achieve (nearly) the same semantic (and not syntax). And that's exactly what timtowtdi is about.

Update: Your reply sounds like "timtowtdi is fine, but not in this case". And I agree that it's a good idea to supply a good default way of doing it, so that people don't feel lost, and consistency is achieved. But since it's usually not clear from the beginning what the default should be, we need many ways to do things in order to later pick a good default. Even for seemingly simple things like class declarations.

Perl 6 - links to (nearly) everything that is Perl 6.

In reply to Re^3: What is best for the future. by moritz
in thread What is best for the future. by Anonymous Monk

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



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.