Y
Hacker News
new
|
ask
|
show
|
jobs
by
cannabis_sam
428 days ago
Regarding 2. How are comptime values restricted to total computations? Is it just by the fact that the compiler actually finished, or are there any restrictions on comptime evaluations?
2 comments
mppm
428 days ago
Yes, comptime evaluation is restricted to a configurable number of back-branches. 1000 by default, I think.
link
pron
428 days ago
They don't need to be restricted to total computation to be referentially transparent. Non-termination is also a reference.
link