Skip to content

Comment on Is this how news.ycombinator.com runs? (Ctrl+F for "Closures Simulate Subroutines")parent

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.

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.