klum-dsl / klum-ast

Turn your models into super models
https://github.com/klum-dsl/klum-ast/wiki
MIT License
3 stars 0 forks source link

Always create a no argument constructor #167

Closed pauxus closed 5 years ago

pauxus commented 5 years ago

This allows for convenience constructors in addition to factories.

Basically, the work with constructors should be revisited. Do we allow custom constructors at all? What about custom constructors for keyed classes?

pauxus commented 5 years ago

Also, create a synthetic protected empty constructor for keyed classes (might even throw an Unsupported operation exception)

This is basically only to prevent IDEs (not the Compiler!) reporting an "missing emtpy constructor error"