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

It's how it works, and it's wrong. It's incorrect. It's badly designed. It should be fixed.

Let me write `'use sanity;'` at the top of a function (like `'use strict';`) and then let me use sane lexically scoped semantics.



I completely agree with your frustration, but even inside the a "sane block" the are cases where you'll need the existing behavior, and backwards compatibility... Ugh.

Almost easier to make completely new keywords that allow you to designate where a special-scope begins and a "this"-like keyword that behaves a little differently.


Well ideally we'd all just use Perl-6-compiling-to-WASM on the web I suppose. Then we can have Perl 6 both in the backend and the frontend!


+1 If I could I would use the Perl programming language for everything!

Let's hope this becomes the reality soon!




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: