Why would anyone want this to compile? scala> List[Unit](1,2,3) <console>:16: warning: ... res3: List[Unit] = List((), (), ())
I'd be tempted to argue that a strict parameter of type `Unit` shouldn't even be a parameter...
-
-
I just want unit insertion and weak conformance to go away. Do what I say, not what you think I want.
-
I wonder how many annoying examples of side-effecting methods returning values exist which would force explicitly returning `Unit`
- Show replies
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.