You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
that the lessThan argument is needed at comptime, and therefore evaluate it then without being explicit? Or is this an instance of "Communicate intent precisely" (or some other aspect of The Zen of Zig)? Note that I don't have to say comptime u16.
The text was updated successfully, but these errors were encountered:
The following fails to compile:
with the error:
This is easily fixed by changing it to
comptime std.sort.asc(u16)
. But shouldn't the compiler know from the definition ofstd.sort.sort
:that the
lessThan
argument is needed at comptime, and therefore evaluate it then without being explicit? Or is this an instance of "Communicate intent precisely" (or some other aspect of The Zen of Zig)? Note that I don't have to saycomptime u16
.The text was updated successfully, but these errors were encountered: