orleans - Immutable attribute or Immutable wrapper object - which one? -
quick question might know!
it appears there 2 ways mark message immutable in orleans..
new immutable(...) or attribute [immutable] on message class
which preferred , more importantly why - or matter of personal taste?
[immutable] applies instances of class (everywhere use it, instances of class considered immutable), while new immutable(...) applies every instance usage (at 1 place can pass class mutable , @ other place immutable). if instances of class immutable, [immutable] more terse , elegant approach.
Comments
Post a Comment