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
Right now, lambdas must declare types for their arguments and blocks must not. But both are represented in more-or-less the same way and seem to go through a similar inference path in typeck.rs; I think we ought to make parameter types optional in both cases. Naturally, if the lambda/block is not used in an argument position, or at least being assigned to a variable of known type, we will not be able to infer a type for the arguments and so an error would occur.
The text was updated successfully, but these errors were encountered:
Right now, lambdas must declare types for their arguments and blocks must not. But both are represented in more-or-less the same way and seem to go through a similar inference path in
typeck.rs
; I think we ought to make parameter types optional in both cases. Naturally, if the lambda/block is not used in an argument position, or at least being assigned to a variable of known type, we will not be able to infer a type for the arguments and so an error would occur.The text was updated successfully, but these errors were encountered: