[Protocol Buffers] Would you welcome a way to writ...
# random
m
[Protocol Buffers] Would you welcome a way to write .proto files with kotlin DSL scripts, say .proto.kts? My primary use case would be to reduce boilerplate of some common structures, otherwise I have to use some marco engine.
Hypothetical example:
Copy code
val Wheel by message {
   field("index", int32, 1)
   field("size", float, 2)
}

val Car by message {
   list("wheels", Wheel, 1)
}
e
if I may
Copy code
val Wheel by message {
   "index".int32 = 1
}
👌 1
m
@elect Well, this exact one probably wouldn't do because there is no way to use custom message type, also modifiers like
optional
would have to be supported, but yeah, some magic like that could probably be applied.