3 ms·
> it also doesn't allow you to constrain what types are accepted by your functions. It does, if by constrain you mean “succeed or fail”: just write a comptime
by dundarious 3y ago
> it also doesn't allow you to constrain what types are accepted by your functions.
It does, if by constrain you mean “succeed or fail”: just write a comptime if statement and @compileError. If you mean a mechanism like concepts or SFINAE then you are correct.