> Yeah, this is similar to what Stephan wrote about here:
> http://stephan.reposita.org/archives/2008/05/02/never-never-never-use-string-in-java-or-at-least-less-often/

Poor Stephan, got so much bashed for the great article. I don't know why 
the people are so enduring and rather live with bad, unreadable and 
unmaintanable code that enjoy the benefits of OO and static typing.

Then you would rather implement the constraints in the type class or 
have them as annotations at the type class.
Perhaps it is also enough to have just an interface for the type and do 
the rest with constraint annotations on the interface?

With type safe object you also have a much easier life when it comes to 
discriminating, sorting, formatting these value objects.

Michael


_______________________________________________
qi4j-dev mailing list
[email protected]
http://lists.ops4j.org/mailman/listinfo/qi4j-dev

Reply via email to