3 ms·
> It does not have typesafe enums (you can pass integers and it will compile). sigh. Sure, if you literally pass an untyped, hard-coded integer, like so:
by Mawr 2mo ago
> It does not have typesafe enums (you can pass integers and it will compile).
sigh. Sure, if you literally pass an untyped, hard-coded integer, like so:
foo(100)
then, and only then will it compile. However, this won't:
a := 100
foo(a)
How horrific.