Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re^3: Perl v5.13.7 is released

by LanX (Archbishop)
on Nov 22, 2010 at 15:29 UTC ( #872985=note: print w/replies, xml ) Need Help??


in reply to Re^2: Perl v5.13.7 is released
in thread Perl v5.13.7 is released

> Automatic dereferencing syntax (meaning: s/@$/@/ or s/@{$ref}/@ref/) would be more useful.

You're well aware of the fact that @ref and $ref are different variables with disjunct name-spaces in Perl?

IMHO this ambiguity would produce hard to track bugs.

Cheers Rolf

Replies are listed 'Best First'.
Re^4: Perl v5.13.7 is released
by arkturuz (Curate) on Nov 23, 2010 at 08:54 UTC
    I'm aware that this is special case for those core functions operating on arrays. So, it's not so hard to track it at all, I think.

    Actually, I don't understand why we need such syntax simplifications it they're not done through all the Perl. Changing Perl philosophy in one place, and not changing it in another is inconsistent and wrong. For example, we still don't have saner defaults for simple object-oriented programming although it is relatively simple to patch the core as demonstrated before on p5p.

      AFAIK Perl's sources are after a long historical evolution quite complex to change.

      Changing the prototype signature of those built-in functions is OTOH comparatively easy done and without risk of compatibility breach.

      Cheers Rolf

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (4)
As of 2020-01-25 13:23 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Notices?