Rich2 / openstrat

Cross Platform Scala 2d graphics (but 3d compatible), basic geometry, maps, Earth maps, hex-tiling and strategy library(s).
https://richstrat.com
Apache License 2.0
21 stars 8 forks source link

Persistence Singleton identity and definition #185

Open Rich2 opened 2 years ago

Rich2 commented 2 years ago

When persisting singleton objects there can be a difference between referencing the object from within another objects definition and defining / constructing the singleton object. A simple identity token should be enough for reference but to construct the object may take a number of fields.

Also Add the typed style to type parametrised types. Simple ShowShow classes have been abandoned. Document the reasons