3 ms·
> If you want to do something specific* with it, like call a specific method on it, you have to make sure to check that the type has it. You can of course ignor
by naasking 2y ago
> If you want to do something specific* with it, like call a specific method on it, you have to make sure to check that the type has it. You can of course ignore it and try to call it without checking it, but you're not going to like the errors.
"Better errors" seems like something that should be fixable in the compiler, eg. by tracking whether a variable was initialized with a static or comptime type, and if the latter, then triggering a different error path to tracing back to the comptime type variable.