Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re: Re: Re: Bug in 5.8.0 fields/base pragmata?

by pg (Canon)
on Apr 02, 2003 at 03:18 UTC ( [id://247411]=note: print w/replies, xml ) Need Help??


in reply to Re: Re: Bug in 5.8.0 fields/base pragmata?
in thread Bug in 5.8.0 fields/base pragmata?

You missed the main point. I would agree with you, if
  1. "use fields" is just a single use statement
  2. its user interface is stable and independent from its underlying implementation
Unfortunately, this is not the case.

If those were true statement, then you would be right, as the compatibility (when one uses the word "compatibility", always ask the question "what is the level of compatibility?") is fully granted.

However, "use fields" comes with a really clumsy interface, which is tightly coupled with its underlying pseudo hash, which has attracted lots of strong criticism, since its birth.

Logically, whether "use fields" would be there in the future is irrelevent here.

Especially if what you guessed is true that the underlying implementation would change to use lock_keys, then it makes even less sense using fields in NEW development, instead of using lock_keys directly.

  • Comment on Re: Re: Re: Bug in 5.8.0 fields/base pragmata?

Replies are listed 'Best First'.
Re: Re: Re: Re: Bug in 5.8.0 fields/base pragmata?
by TimToady (Parson) on Apr 02, 2003 at 20:54 UTC
    No, the problem with using lock_keys directly is that it's a run-time solution rather than a declarative solution. In the long run this will make it more difficult to translate to Perl 6. In other words, it's making the same mistake that pseudo hashes did, insofar as it reveals too much of the underlying machinery.
Re: Re: Re: Re: Bug in 5.8.0 fields/base pragmata?
by Anonymous Monk on Apr 03, 2003 at 14:38 UTC

    All right. So you say I don't want to "use fields". Is there a standard package that provides the same easy one-shot definition of fields with inheritance? (That's what I wanted to "use fields/base" for.)

    And believe me, I'm plenty aware of the wealth of modules on CPAN in Class::*. Is one of them on the way to becoming the non-deprecated replacement for "fields" in 5.10?

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others chanting in the Monastery: (6)
As of 2024-04-16 11:45 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found