Runtime evaluation/In an environment: Difference between revisions

(omit from Haskell)
(→‎{{header|Java}}: typo fixing)
Line 298:
=={{header|Java}}==
{{works with|Java|6+}}
Java is compiled static language and expression evaluation is not intrinsic part of Java or the standard libraries. In scripting languages for example - it makes sense to have eval method, as interpreter can interpret string and include it'sits contents as part of the surrounding methods, with complete access to local variables.
 
Clearly there are lots of ways to get around the problem, but as of Java 6, Java can contain scripting environments. For example Mozilla Rihno JavaScript engine is contained in JDK 6 Bean Scripting Framework.
751

edits