On Mar 23, 2016, at 13:41, Peter Uhn��k <i.uhnak@gmail.com> wrote:Hi,as this probably doesn't have one solution I am interested in your approach, if you have any.The problem is that often you want to create instances (or just return constants) in some particular domain, e.g.Color red.Color blue.Unfortunately this doesn't scale, because putting unary methods on the class-side is a good way to break your image.