but it's not as "natural" as you want us to believe.

I never suggested it was natural. Just countered your argument by saying that both are equally unnatural.

Again it's only an example. ... not meant as a use case

An example that's not a use case is an interesting concept.

I claim that you primarily want to win a debate.

Nope. I seriously wanted to understand why you would even be considering using autobox in production code.

I've got fairly well enchrenched views on programming langauges & paradigms, but every now and then I see someone who's opinions I value, suggest things that are contrary to my views, and I seek further information. And, potentially, reform my positions accordingly.

I've reached my conclusions now, and no longer seek that understanding. I only re-joined this thread because I noticed your update explicitly addressed to me.

explain you the benefits of OOP

I don't need them explaining. But I do think they are way oversold.

OO is just one of several programming paradigms, each of which has its place and its drawbacks. I like Perl because it allows me to choose the appropriate paradigm for the problem at hand, and mix them transparently.

My confusion and disquiet arises when I see people moving towards the One True (whichever) Paradigm, to the exclusion of all others.


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.
"I'd rather go naked than blow up my ass"

In reply to Re^5: What are the drawbacks of autobox? by BrowserUk
in thread What are the drawbacks of autobox? by LanX

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.