Closed sebastiaanspeck closed 1 week ago
Why would you want to check methods but not check procedures? Procedures are also callable, just like methods, which return values (types) and have parameters (types).
That is true, although if you have a procedure within a method, or a sort_proc, the parameters is most of the time already known.
The type doc actually serves two purposes:
For any method/procedure, even just a small sorter procedure, you can use no 2 to ensure - even before compiling/testing - the method/procedure actually does what it says it does. Of course, this requires that the method/procedure can be fully reasoned with. This requires all used methods to be annotated/their typing information to be known.
Why would you want to check methods but not check procedures? Procedures are also callable, just like methods, which return values (types) and have parameters (types).