Jump to content

Runtime evaluation: Difference between revisions

m
→‎{{header|Go}}: fixed lang tag
(omit from Haskell. Interpreter is not a part of language spec in Haskell, nor compiler. There is no "eval" function as part of language spec.)
m (→‎{{header|Go}}: fixed lang tag)
Line 213:
=={{header|Go}}==
As a compiled, strongly typed language, <code>eval()</code> is not the strong suit of Go. Nevertheless, an <code>eval</code> package exists that does that. Just don't expect it to be as easy or efficient as in interpreted languages. The eval package was originally part of the Go standard library but is now hosted and maintained externally.
<lang Gogo>package main
import (
"fmt"
1,707

edits

Cookies help us deliver our services. By using our services, you agree to our use of cookies.