You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It would be great if ScalaPB allowed us to specify which type of scala Map is going to be used when declaring proto3maps. Right now, it is restricted to scala.collection.immutable.Map, but sometimes it is better to use mutable Maps.
Namely, I'm thinking about an option like this: map<string, string> my_map = 1 (scalapb.field).map_type = "scala.collection.mutable.Map"
WDYT?
The text was updated successfully, but these errors were encountered:
It makes sense to add this. Can you work on a PR? It would be worth exploring if (scalapb.field).collection_type could be used for this rather than adding map_type.
Any progress on support for this? I have a similar use case that I would really like to be able to specify (scalapb.field).collection_type = "scala.collection.immutable.SortedMap"
It would be great if
ScalaPB
allowed us to specify which type of scalaMap
is going to be used when declaringproto3
map
s. Right now, it is restricted toscala.collection.immutable.Map
, but sometimes it is better to use mutableMap
s.Namely, I'm thinking about an option like this:
map<string, string> my_map = 1 (scalapb.field).map_type = "scala.collection.mutable.Map"
WDYT?
The text was updated successfully, but these errors were encountered: