Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re^3: Why is const x const not a const?

by BrowserUk (Pope)
on Jan 22, 2012 at 15:16 UTC ( #949258=note: print w/ replies, xml ) Need Help??


in reply to Re^2: Why is const x const not a const?
in thread Why is const x const not a const?

That's not very convincing. For example if I write '=' x 80, I see immediately that it's 80 equal signs. But if I write ...

You can do:

use constant EQUALx80 => '=' x 80; ...

With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
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.

The start of some sanity?


Comment on Re^3: Why is const x const not a const?
Download Code
Re^4: Why is const x const not a const?
by TomDLux (Vicar) on Jan 22, 2012 at 19:41 UTC

    Better, name it after its use, rather than its constituents.

    use Readonly; Readonly my $SECTION_SEPARATOR => q{=}x80;

    As Occam said: Entia non sunt multiplicanda praeter necessitatem.

      No. You are absolutely wrong on all counts!

      First. Look at the post I was responding to. The premise was, that it is much clearer from '=' x 80 that there are 80 '=' than if you used

      ==================================================================

      so your 'correction' is wrong in context.

      Secondly, your assumption that that string is a "SECTION_SEPERATOR" is wrong. It cannot be right, because you have no basis upon which to reach that conclusion.

      But mostly, trading use constant for that vacuous, puerile, slow, stupid, braindead, idiotic, stupid -- did I say stupid already? -- worthless, pathetic, fscked-up, oxymoronic piece of crap is ... um .. oh dear, I seems to have run out of appropriate adjectives.

      Update: Oooh. OOoh! I thought of one: fatuous. ( I didn't use that already did I? )


      With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
      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.

      The start of some sanity?

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://949258]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (9)
As of 2014-07-30 05:05 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (229 votes), past polls