Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re^2: What esteemed monks think about changes necessary/desirable in Perl 7 outside of OO staff

by likbez (Sexton)
on Sep 13, 2020 at 19:20 UTC ( [id://11121691]=note: print w/replies, xml ) Need Help??


in reply to Re: What esteemed monks think about changes necessary/desirable in Perl 7 outside of OO staff
in thread What esteemed monks think about changes necessary/desirable in Perl 7 outside of OO staff

Thank you for reviewing all the proposals. Instead of just "soft semicolon" :-)
5a: I guess this is a decent one.
Some progress :-).
8a: It's not hard to check if the return value of index is below a certain limit.
No. For example, in bioinformatics FASTA sequences the string can be several gigabytes. You need to use substr right now to limit the search area.
9a: Umm, when is already allowed in for loops.
There are a couple of unresolved problems. You need to suppress "when is experimental" warning to use it with

no warnings 'experimental::smartmatch';

and the form when('a') involves smart matching as as such might not work in future releases. So it is essential to disable smart matching in when in order to use it (in this case the syntax should be when( $_ eq 'a')... and the form when('a') should generate an error, which I do not think is currently possible.

  • Comment on Re^2: What esteemed monks think about changes necessary/desirable in Perl 7 outside of OO staff
  • Select or Download Code

Replies are listed 'Best First'.
Re^3: What esteemed monks think about changes necessary/desirable in Perl 7 outside of OO stuff
by hippo (Bishop) on Sep 13, 2020 at 20:38 UTC
    You need to suppress "when is experimental" warning to use it

    No, you don't. It will quite happily work without suppressing the warnings, you just get the warnings is all. And that's a good thing because it means that you don't forget that it's experimental.


    🦛

Log In?
Username:
Password:

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

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

    No recent polls found