Why would anyone want this to compile? scala> List[Unit](1,2,3) <console>:16: warning: ... res3: List[Unit] = List((), (), ())
I wonder how many annoying examples of side-effecting methods returning values exist which would force explicitly returning `Unit`
-
-
Future[Unit] is a rabbithole in a minefield. Burninate.
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
in that case having to type ; () doesn't come anywhere close to the punishment you deserve.
-
Do you want "start a process" to not return a handle? Or to do it by changing an argument? Or do I miss some alt.?
End of conversation
New conversation -
-
-
a ton. I think we had to add over 100 lines to our code ...but it also caught 2 bugs, so worth it.
-
We shouldn't overlook that it would probably encourage people choose side-effecting OR returning a value; not both.
- 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.