hi @propensive. what's your criteria for putting a def or val on a scala class v. companion object? thanks
@Gentmen Vals are easier, though: are they part of the object's state or a constant?
-
-
@propensive ah good point. if it's constant then I suppose companion is obvious... -
@Gentmen It's a waste of heap source otherwise - there would be an identical copy of the primitive/reference for every instance. :(
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.