Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
euroclydon
on Jan 15, 2011
|
parent
|
context
|
favorite
| on:
What the Heck is Shadow DOM?
The ability to hide stuff sort of takes the "script" out of Javascript.
sid0
on Jan 15, 2011
[–]
What do you mean by that? A closure like
function foo() { var x = 0; return function () { return x++; } }
and the equivalent in Python/Ruby/any language with closures hides x even better than a private member in Java would.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: