Hacker Newsnew | past | comments | ask | show | jobs | submit | Sheepshow's commentslogin

In your example, X is still in scope when f('x') is called. It doesn't require closure to work.


I think you misunderstand what I'm trying to say. The point is not that x should be out of scope (why would it be?)

The original assertion by curveship was that the outer context is not kept alive for the function, and that f() only gets access to the variables it explicitly imports from the outer context. And I thought this might be wrong, so I cooked up the example.

Again, this is not about scope. This is about the fact that the function itself keeps a reference to the entire context it was created in, as opposed to just the things it explicitly imports.

In this, it appears, Javascript works exactly as Ruby, which again makes the entire outer context available through the binding facility.

I'm sorry if that wasn't clear from my description.


Write it in C then compile it to JS with emscripten


Well $8 for a chip is extremely expensive. I bet a vast majority of keyboards on the market sell in bulk for less than $8.


> even though no useful economic activity is taking place

Saving is a useful economic activity. Why should I let some filthy money lender touch my money? It's my money!


Living paycheck to paycheck is not the converse of saving.

When I save money, I invest it in productive enterprise. Thus, I have less in my checking account. You could even consider (gasp) that I'm living pay check to pay check!


I can't hear you over the sound of your filthy and oppressive fiat currency rattling in your pockets.


What a circle jerk.


All those features are hogshit, completely irrelevant, and extremely complicated and difficult to achieve. I have never once watched a movie and said "I didn't like that movie. Let me watch it again with taller actors and more rounded furniture."


You don't have to. But those features might allow someone else to mash it up into something better. Like the three examples in my comment.


Software freedom is the ability to do whatever you want with the code, for example, compiling it. I'm not saying there's any sort of license violation here, but it's not in the spirit of software freedom to "not supposed to install software [from source]"


Granted, but the freedom to ruin one's system is not a freedom I would promote.

Installing software from source is a good thing, you just need to go through the intermediate process of creating a package for your distribution first.


To the mooooooon!


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

Search: