Implicit function return types #2865
Closed
Vurv78
started this conversation in
Suggestions
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
This is stupid. Lambdas don't need explicit return types, in fact you can't actually explicitly type them. Functions should be the same.
This should be valid and mark the function to return
function
.If in the future we need explicit typing, I'd prefer typescript's syntax of
function test(): number
over the weird amalgam near-C version.Beta Was this translation helpful? Give feedback.
All reactions