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

Popular posts from this blog

java - UnknownEntityTypeException: Unable to locate persister (Hibernate 5.0) -

python - ValueError: empty vocabulary; perhaps the documents only contain stop words -

ubuntu - collect2: fatal error: ld terminated with signal 9 [Killed] -