Comment on Is this how news.ycombinator.com runs? (Ctrl+F for "Closures Simulate Subroutines")parentComments−malkia19yIsn't there a risk, that someone can (accidentally or not) enter hash-code of someone else's "closure"?−mdakin19yOne could avoid that problem by keeping track of the owner of each closure and ensuring the user is properly authenticated before calling the closure.−pg19yThe code explicitly protects against that.−papersmith19yIf access to the closures are session-specific, you'll have to hijack the session to do that.
Comments
Isn't there a risk, that someone can (accidentally or not) enter hash-code of someone else's "closure"?
One could avoid that problem by keeping track of the owner of each closure and ensuring the user is properly authenticated before calling the closure.
The code explicitly protects against that.
If access to the closures are session-specific, you'll have to hijack the session to do that.