CBV/CBN , -, redex -. , , CBV/CBN.
, , CBV/CBN. , CBV CBN.
Haskell ,
interpret env (App e1 e2) = case interpret env e1 of
V _ -> error "not a function"
F f -> f (interpret env e2)
(CBN). ( luqui, GHC ).
(CBV), :
interpret env (App e1 e2) = case interpret env e1 of
V _ -> error "not a function"
F f -> case interpret env e2 of
V v -> f v
F g -> f g
, thunks , . , v, g . , .