hi @propensive. what's your criteria for putting a def or val on a scala class v. companion object? thanks
@Gentmen That's a complex question... Not sure I can answer it in a dozen tweets! Have you got a particular case in mind?
-
-
:)
@propensive well, my standard has been to put the def inside of the companion if it does not rely on a class's constructor arg. -
@Gentmen Replace "constructor args" with "state" and that's a good start!
End of conversation
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.