Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re: What operator should perl5porters use for safe dereferencing?

by KES (Sexton)
on Jun 02, 2020 at 09:30 UTC ( [id://11117589]=note: print w/replies, xml ) Need Help??


in reply to What operator should perl5porters use for safe dereferencing?

Some time ago I have this post: http://blogs.perl.org/users/eugen_konkov/2017/04/soft-call-operator-thoughts.html The only reason that ~> was not implemented because on some terminals it does not look like -> So eight years of ugly coding had go. Now I see other news in other languages about that it is going to be implemented: https://medium.com/@reneecruz/optional-chaining-javascript-es2020-cebae40f7007 It really cool. And it has no matter how it will look. (?.) It really cool possibility to write clean code. Does any know when perl5 will move further and do not stuck in last century?
  • Comment on Re: What operator should perl5porters use for safe dereferencing?

Replies are listed 'Best First'.
Re^2: What operator should perl5porters use for safe dereferencing?
by KES (Sexton) on Jun 02, 2020 at 09:39 UTC
    even c# has that too: https://docs.microsoft.com/ru-ru/dotnet/csharp/language-reference/operators/member-access-operators#null-conditional-operators--and-

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others wandering the Monastery: (None)
    As of 2024-04-19 00:22 GMT
    Sections?
    Information?
    Find Nodes?
    Leftovers?
      Voting Booth?

      No recent polls found