Skip to content
Discussion options

You must be logged in to vote

IMO the explicit syntax is much clearer about what's going on. There's nothing about Add(4) that tells me that this is some kind of partial application resulting in the allocation of some arbitrary type of delegate. Having the compiler try to do that automatically based on incomplete method invocations would complicate method overload resolution considerably.

Replies: 4 comments 4 replies

Comment options

You must be logged in to vote
4 replies
@Richiban
Comment options

@leandromoh
Comment options

@HaloFour
Comment options

@YairHalberstadt
Comment options

Answer selected by leandromoh
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
6 participants