seekerkoruth
seekerkoruth
code:= `1+1/(4+5)*(1*5)+3.3+3.3+3.3+3.3/3.3*3.3` When I run this code in excel, I get 14.7555. When I run it in expr, I get 14.2. What accounts for the difference? however this works: `1.0+1/(4.0+5)*(1*5.0)+3.3+3.3+3.3+3.3/3.3*3.3`...
Timeout
Is there a way to timeout and kill a running expr.Run/VM.Run process if it is taking too long? This is to terminate/interupt runaway code that was miscoded,etc. I did a...
How exactly should this be implemented: To fetch fields from struct, values from map, get by indexes expr uses reflect package. Envs can implement vm.Fetcher interface, to avoid use reflect:...
I am trying to put a check in map access. if you have a Golang map foo and it **does not** have an element "bar" the code below will fail...