Skip to content
Better HN
Top
Best
Ask
Show
New
Jobs
Search
⌘K
0 points
creata
5y ago
0 comments
Save
Share
Can you please provide an example of Zig "working out the dependency"? I'm struggling to make sense of your comment.
0 comments
3 comments · 1 top-level
top
newest
oldest
patrec
5y ago
· 2 in thread
I could write a concrete example that will work in zig and fail in common lisp, but maybe this link is enough?
https://ziglang.org/#Order-independent-top-level-declaration...
creata
OP
5y ago
Oh, so is the point that in Zig, functions with comptime parameters are more or less identical to regular functions in that regard?
dnautics
5y ago
Exactly. You can
also
use non-comptime functions in comptime, if it avoids certain types of stateful behaviour.
1 more reply
j
/
k
navigate · click thread line to collapse