Wow, great video. I had no idea lambdas were static methods, I assumed they're syntactic sugar for creating the desired class. Also, I see some other redditors are saying "why would you do that", which may be true, but it's not at all obvious why it wouldn't work. It seems it should be a compiler error.
1
u/ZeroGainZ Mar 24 '21
Wow, great video. I had no idea lambdas were static methods, I assumed they're syntactic sugar for creating the desired class. Also, I see some other redditors are saying "why would you do that", which may be true, but it's not at all obvious why it wouldn't work. It seems it should be a compiler error.