amnaredo / test

0 stars 0 forks source link

Serialize case classes as tuples (positional arguments) #204

Open amnaredo opened 3 years ago

amnaredo commented 3 years ago

I suggest we introduce another annotation to the serialized case class:

@Positional

Whis way case class A(a: Int, b: String, c: Boolean = false) / A(12, "Some string") could simply get serialized to [12,"Some string"]. This would decrease the amount of information about the code that leaks to the user and would also greatly decrease the amount of data transferred. ID: 193 Original Author: strelec

amnaredo commented 3 years ago

Already doable using http://www.lihaoyi.com/upickle-pprint/upickle/#CustomConfiguration Original Author: lihaoyi

amnaredo commented 3 years ago

No, this is not what I mean.

I mean something automatic, without specifying the serialization rules for each case class separately. Original Author: strelec