Jump to content

Runtime evaluation: Difference between revisions

→‎{{header|Go}}: update for library hosting change
(→‎{{header|Go}}: update for library hosting change)
Line 234:
 
=={{header|Go}}==
As a compiled, strongly typed language, <code>eval()</code> is not the strong suit of Go. Nevertheless, there'san <code>exp/eval</code> package, part of Go interpreter project,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 Go>package main
import (
"fmt"
"expbitbucket.org/binet/go-eval/pkg/eval"
"go/token"
)
1,707

edits

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