Closed bgnori closed 10 years ago
至る所でClosure()でcastしている. 型をtestする側を変えるほうが良い.
i.e.
Evalの中のcase isPair(expr)で op, ok := car.(Closure)
op, ok := car.(Closure)
しているのがまずい. これを
op, ok := car.(func(Enviroment, Pair) interface{}) とすれば良いはず.
op, ok := car.(func(Enviroment, Pair) interface{})
5e8f6231c1dcdfa4d60e492a2c49d89b4fcfcdfc
至る所でClosure()でcastしている. 型をtestする側を変えるほうが良い.
i.e.
Evalの中のcase isPair(expr)で
op, ok := car.(Closure)
しているのがまずい. これを
op, ok := car.(func(Enviroment, Pair) interface{})
とすれば良いはず.