Scala 値クラスの内部値に名前を付ける慣用的な方法があるかどうかは誰にもわかりませんか? 製品IDの値クラスがあるとします。次のように定義する方が適切ですか。
case class ProductId(productId:String) extends AnyVal
case class ProductId(underlying:String) extends AnyVal
case class ProductId(value:String) extends AnyVal
?
それは単なる好みの問題ですか、それとも慣用的なガイドラインがありますか?