4 ms·
> No return value needed (compiles down to an Action<T> I think) Which is an other crufty thing in C#: because Void/() is not a type (inherited from Java), it
by masklinn 15y ago
> No return value needed (compiles down to an Action<T> I think)
Which is an other crufty thing in C#: because Void/() is not a type (inherited from Java), it needs to have both `Func<Tn..., T>` and `Action<Tn...>` in order to handle functions-with-a-return-value and functions-without-a-return-value.
- hackinthebochs 15y agoThis is true, but its mostly transparent unless you're doing something particularly ugly.
- masklinn 15y agoLike trying to take one of these as parameter or return it?
- hackinthebochs 15y agoThis is a statically typed language mind you. If you're passing something around as values, you're gonna need to declare what its type is (of course there's type inference, but that just turns it into a totally different language)
- masklinn 15y ago> If you're passing something around as values, you're gonna need to declare what its type is I fail to see the relation this has with my issue.