Language Support for the Domain Model
While I was walking up the slopes with Frans to watch the World Championships Big air qualifications in Arosa, Switzerland during our annual Software Architecture Workshop, we talked about the support for Domain Model patterns in his product LLBLGen Pro. I shared my thoughts on language extensions and in the workshop, both on and offline, there were a lot of discussion on how to support the Domain Model in our languages, frameworks and tools. Mats wrote a very insightful post on Domain Model Management which covers some aspects of our thinking. Why not take this thought one step further? With all the great language innovations in C# 3.0! What about supporting the Domain Model directly in our favorite language. Imagine the compiler being able to validate the implemented Domain Model.
I would love to hear your thoughts on this idea!
coredomain Transportation
{
aggregate Car
{
..
entity Wheel
{
..
valueobject Position
{
..
repository CarRepository
{
..
service FuelTransfer
{
..
subdomain Navigation
{
..