The Scala example in the comments demonstrates that you can have your cake and eat it too:
case class Mountain (val name: String, val latitude: Int, val longtitude: Int, var country: String)
It's concise and type-safe, and can readily be used with more powerful aggregate constructs.
The Scala example in the comments demonstrates that you can have your cake and eat it too:
case class Mountain (val name: String, val latitude: Int, val longtitude: Int, var country: String)
It's concise and type-safe, and can readily be used with more powerful aggregate constructs.