http://qs321.pair.com?node_id=880371


in reply to Re^2: I'm looking forward to 2011 the way I once looked forward to ..
in thread I'm looking forward to 2011 the way I once looked forward to ..

Sorry to say that I really don't care about perl6 at all, as they decided to make my coding style close to illegal in perl6 by default because of whitespace issues.

For me, coding is like art. The code should not only work well, but also look appealing. That will increase the maintainability. Perl5 gave everyone all the flexibility they needed to make their code adapt to their personal style. And all were happy, as all think their style is best. Nothing wrong with that, as long as you are consistent in that style and gave it some thought. I have tried to explain my personal style, which is best for me. I will not try to convince others to change.

Perl6 is not my language.


Enjoy, Have FUN! H.Merijn
  • Comment on Re^3: I'm looking forward to 2011 the way I once looked forward to ..

Replies are listed 'Best First'.
Re^4: I'm looking forward to 2011 the way I once looked forward to ..
by DrWhy (Chaplain) on Jan 05, 2011 at 01:43 UTC
    Although I don't agree with your choice in coding style, I absolutely agree with the underlying principle that code should look good as well as behave correctly. The key reason is that when done well this increases the understandability and as a result the maintainability of the code.

    --DrWhy

    "If God had meant for us to think for ourselves he would have given us brains. Oh, wait..."

Re^4: I'm looking forward to 2011 the way I once looked forward to ..
by Arunbear (Prior) on Jan 04, 2011 at 15:03 UTC
    I don't understand this:
    they decided to make my coding style close to illegal in perl6 by default because of whitespace issues.
    Can you give an example of what restrictions Perl6 imposes? (or do you mean that the Perl6 project wouldn't accept your code due to coding style?)

      At the risk of getting negative points here, just because people do not agree with me, I'll still answer your question ...

      In my logic, which I explained in detail in the link passed in the previous post, the only correct way to call a function is:

      my $result = function ($arg1, $arg2); ^

      A function name must be separated by the opening paren by whitespace. The parens are there to group the arguments, not to signal that function is a function.

      As perl6 has decided that "It is a function if it looks like a function" now excludes the way I see as the only correct way, perl6 has definitely lost a user: me.

      Some perl6 programmers tell me that I can create my own grammar(s), but that is completely besides the point. If I cannot write code the (only) way I think is logical (and beautiful), then I've lost one very very important factor in coding: FUN!


      Enjoy, Have FUN! H.Merijn

        May I ask, do you use @array[ 1, 2, 3 ] or @array [1,2,3]?


        Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
        "Science is about questioning the status quo. Questioning authority".
        In the absence of evidence, opinion is indistinguishable from prejudice.