Hacker News
new
past
comments
ask
show
jobs
points
by
steeleduncan
14 hours ago
|
comments
by
v0id_isgood
14 hours ago
|
next
[-]
const can be used in places that need a compile-time-known value (like a fixed array size). let can't, even if it obviously holds a fixed number.
reply
by
bramadityaw
11 hours ago
|
parent
|
[-]
isn't there a way to infer that from context? like if the variable is declared with the Comptime role. Some guy said that the const keyword was a mistake C made that is then blindly followed by its successors.
reply
by
13 hours ago
|
prev
|
[-]
deleted
reply