User-defined nullary constructors break libraries
When a user defines a nullary constructor
Foo: Type, she can break imported libraries like
editor-common.generated. This happens only when the constructor masks a variable name in the library and is caused by Stratego favouring nullary constructors over variables.
Submitted by Guido Wachsmuth on 5 June 2012 at 10:24
- Favour variables over constructors.
- Resolve to variable by default. Resolve to constructor, when no variable is found.
- Introduce a real package system in Stratego.