-
-
Notifications
You must be signed in to change notification settings - Fork 286
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use immutable Seq
for repeated
#227
Comments
related #218 |
This should be an option users can choose once #218 is implemented since making
|
Even better if it becomes an option. But for a pre-1.0 software I personally wouldn't be surprised by breaking changes. |
I wonder, can't this default to |
ScalaPB generator code is meant to be used on all supported versions of Scala, incl. Scala 3. Been trying to avoid having language-version logic in the generator, though this is something that can be considered in the future if there's a real advantage. For this one, you can set |
Currently a
repeated
field of a message gets compiled to ascala.collection.Seq
parameter or a case class. Case classes really should be immutable, which can be broken by passing a mutableSeq
. Therefore I suggest to usescala.collection.immutable.Seq
.The text was updated successfully, but these errors were encountered: