Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
cannabis_sam
8 months ago
|
parent
|
context
|
favorite
| on:
Things Zig comptime won't do
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?
mppm
8 months ago
|
next
[–]
Yes, comptime evaluation is restricted to a configurable number of back-branches. 1000 by default, I think.
pron
8 months ago
|
prev
[–]
They don't need to be restricted to total computation to be referentially transparent. Non-termination is also a reference.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: