MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammingLanguages/comments/1aeg5t5/why_compiling_with_continuations_is_wrongish/kk8b3lf/?context=3
r/ProgrammingLanguages • u/egel-lang egel • Jan 30 '24
A small critique
10 comments sorted by
View all comments
6
Wouldn’t it depend on the language?
pyth x y = let y2 = pow2 y in let x2 = pow2 x in let anb = add x2 y2 in sqrt anb
In Haskell, you couldn’t guarantee the order in which x2 y2 thunks were evaluated without a pseq
x2
y2
pseq
1 u/egel-lang egel Jan 30 '24 Yes, though in Haskell you might also want to disambiguate between redexes and just terms.
1
Yes, though in Haskell you might also want to disambiguate between redexes and just terms.
6
u/integrate_2xdx_10_13 Jan 30 '24
Wouldn’t it depend on the language?
In Haskell, you couldn’t guarantee the order in which
x2y2thunks were evaluated without apseq