For loops can be inlined. This causes the loop to be unrolled, which allows the code to do some things which only work at compile time, such as use types as first class values. The capture value and iterator value of inlined for loops are compile-time known.
zig fmt formats horizontally if a comma is missing from the last element. I added a comma after the last FuncT in functable. If there is an extra comma after the last element zig fmt formats vertically.
for statement accepts an array, you don’t need an index.
Functions are for compile time only, function pointers can be used in runtime by adding a *const before fn.
Thanks as well for the following info. this resolves what I had been annoying.
zig fmt formats horizontally if a comma is missing from the last element. I added a comma after the last FuncT in functable. If there is an extra comma after the last element zig fmt formats vertically.