> Dependent types are types that depend on values.
Like this?
fn f(comptime x: bool) if (x) u32 else bool {
return if (x) 0 else false;
}Like this?
fn f(comptime x: bool) if (x) u32 else bool {
return if (x) 0 else false;
}[1]: https://www.seas.upenn.edu/~sweirich/papers/fckinds.pdf