Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

> The problem with both is it's not the default.

In Perl 6 declaration of any variable is obligatory by default.

> Then there's all the massive mess of $foo vs %foo vs @foo vs &foo

In Perl 6 that has all been made more systematic. Check out https://opensource.com/article/18/9/using-sigils-perl-6 if you want to know how Perl 6 differs from Perl 5 in that respect, and how you can actually have sigilless variables in Perl 6.

> And all the ridiculous cryptic globals

Perl 6 basically only has `$_` (the topic), `$/` (the current match result) and `$!` (the last error) as "cryptic" lexicals. See https://docs.perl6.org/language/5to6-perlvar for a list of Perl 5 variables -> Perl 6 functionality



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: