|
|
|
|
|
by Sukera
1403 days ago
|
|
> I have to annotate all structs and function input types. Can you elaborate on that? Argument types in function definitions do not help the compiler infer types - you can leave them completely untyped. It's really only required in struct fields, so that the compiler can know the size of your struct and doesn't have to box everything. |
|
(I don't recommend it though, having some idea of type safety is in general a good idea)