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

Perl 6 claims saner defaults. For the strict pragma, it's off by default for one liners and on by default for everything else.

A much bigger relevant change is Perl 6's support for hygienic lexically scoped "slangs". These can be used to relatively cleanly package composable dialects, DSLs, language tweaks etc. Slangs make it practical for a group to establish a default local policy (policies include anything from switching some language tweak on or off to switching to another language entirely) and for an individual programmer to extend or alter that policy in a cooperative manner.

Slangs aren't yet nearly as easy as they supposed to be, but they're getting there. A couple examples are v5 (which switches to another lang entirely) and Tuxic (a tiny idiosyncratic tweak to standard Perl 6):

https://github.com/rakudo-p5/v5/blob/master/README.md

https://github.com/FROGGS/p6-Slang-Tuxic/blob/master/README....



Consider applying for YC's Winter 2026 batch! Applications are open till Nov 10

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

Search: