seekerkoruth
seekerkoruth
I think a full blown language adds bulk and overhead to an expr language. This is unnecessary. I agree with Anton.
How do you propose this can be solved? At the code level or at the end consumer level by adding the .0 hint to a literal numerator or denominator when...
> What about float as default for every constants in 1/2 expression? I think this will work. Float as a default for all division operations is a excellent rational solution...
I propose these code fragments: ```go const shortDuration = 1 * time.Millisecond d := time.Now().Add(shortDuration) ctx, cancel := context.WithDeadline(context.Background(), d) vm1:=expr.VM{} VM.Run(prg, env, ctx) func (vm *VM) Run(program *Program, env...
> I don’t remember the logic behind this behaviour. Maybe @davidklassen has some thoughts? @antonmedv , The above code fragment will fix it. runtime.go:37
> Not just a fix. Expr will behave differently. @antonmedv, Understood. However it will be in the line of other checks made such as a slice index out of bounds...