in reply to Re^17: chopping a string into slices - is there a more elegant way to do it?
in thread chopping a string into slices - is there a more elegant way to do it?

Were we disaggree is that I say:

Simplified rules that never fail are not "unnecessary myths".

For instance Newton's Mechanics are teached in school, even that Einstein prooved 100 years ago they are wrong! It's easily observable when one reach the speed of light. But how many pupils ever reach 1% of the speed of light? and how many perl hackers ever see opcode?

well actually it's a philosophical question, no need to discuss it further.

Cheers Rolf

  • Comment on Re^18: chopping a string into slices - is there a more elegant way to do it?

Replies are listed 'Best First'.
Re^19: chopping a string into slices - is there a more elegant way to do it?
by ikegami (Patriarch) on Dec 01, 2008 at 17:06 UTC

    Simplified rules that never fail are not "unnecessary myths".

    Exactly.

    Removing parens to the definition of list is simpler then the same definition without parens.

    • A list is a series of comma delimited expression or "()".
    • Parens, an array or a hash on the LHS of an assignment operator force a list assignment.

    vs

    • A list is a series of comma delimited expression, a series of comma delimited expression in parens or "()".
    • A list, an array or a hash on the LHS of an assignment operator force a list assignment.

    Using parens in the definition of list has failed.

      less confusion, more easily readable syntax.

      AFAIR Perl 6 addresses this mess by changing the syntax.

      Cheers Rolf

      UPDATE: unfortunately the question I was referring to was "updated" away ...