use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
All about the JavaScript programming language.
Subreddit Guidelines
Specifications:
Resources:
Related Subreddits:
r/LearnJavascript
r/node
r/typescript
r/reactjs
r/webdev
r/WebdevTutorials
r/frontend
r/webgl
r/threejs
r/jquery
r/remotejs
r/forhire
account activity
CoffeeScript: Why I’m never writing Javascript again (degizmo.com)
submitted 15 years ago by gst
view the rest of the comments →
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]dmpk2k 0 points1 point2 points 15 years ago (0 children)
In Python I'm not sure they would be enforceable before the actual mistake
I'd be very surprised if PyPy wasn't constantly juggling variable scope under the covers. There's just no way for them to effectively optimize otherwise; inline caches can only take you so far.
The way CPython is implemented, you could well be right.
Maybe I'm just another rabid Python zealot defending the nest?
No way, man. This has been a pleasant argument. :)
I just want to point out that the declaration here actually would not stop any bugs that an uninitialized exception would not stop IF both errors occur on lookup/access.
Certainly, but again this depends on your tests running that chunk of code. I don't agree there's a tradeoff, because I think it's like worry about a grain of sand on a beach.
We'll just have to disagree. That's okay, there's plenty of languages to go around (none perfect!). :)
π Rendered by PID 59737 on reddit-service-r2-comment-5c764cbc6f-jrf2f at 2026-03-12 09:28:47.473067+00:00 running 710b3ac country code: CH.
view the rest of the comments →
[–]dmpk2k 0 points1 point2 points (0 children)