Syntactic Confectionery Delight | |
PerlMonks |
comment on |
( [id://3333]=superdoc: print w/replies, xml ) | Need Help?? |
Wow, that's a lot of hate for what seems a fairly obvious way of extending the postfix deref mechanisms to be complete using fairly obvious syntax. Especially since these were proposed many, many years ago and I've seen several expressions of a desire for them to actually get implemented and I don't recall any significant complaints about the idea over those many years. I personally quite dislike the huge separation between tightly related parts involved in @{ ... }{@keys} when the "..." part can easily spread across multiple lines and involve a quite large number of sequential applications of all manner of postfix deref'ing. If these are so bad, then surely ->[$i] and ->{$k} have precisely the same problems and should be dropped so that only ${ ... }... can be used. Which would be ridiculous since I see ->[$i] used a ton more than ${ ... }[$i]. I suspect that even @{ ... } will eventually be mostly replaced by ->@* for reasons similar to why ->[$i] is now so much more common than ${ ... }[$i]. - tye In reply to Re: use feature 'postderef'; # Postfix Dereference Syntax is coming in 5.20 (++)
by tye
|
|