|
|
|
|
|
by drcode
591 days ago
|
|
Zig believes that all code needs to be explicit, to prevent surprises- You never want code that "just executes on its own" in places you may not expect it. Therefore, if you want default arguments, you have to perform some action to indicate this. |
|
Per the article, this is the explicit form: