Category talk:JavaScript: Difference between revisions

no edit summary
m (Fixed a minor error)
No edit summary
Line 8:
What about JavaScript? What does JavaScript do to reduce or limit side effects in your program?
 
:* No way of enforcing functional purity
:* No way of creating immutable objects
:* You can't statically type variables
:* You can't even put things into namespaces
 
JavaScript has the weakest control over its side effects of any language I know of, there is even implied globals if you leave off the var keyword.
Anonymous user