Can you give examples? On August 25, 2020 at 19:22:40, Łukasz Dywicki (l...@code-house.org) wrote:
I been trying to write new mspecs and I found that discriminator handling is quite limiting in current form. For example it is possible to declare a type argument, but it is not possible to use it as a divider. It is also not possible to use a virtual or manual field as a discriminator which could very well be source for type information. I am aware that virtual field is computed at runtime with given expression. I am not entirely sure of all implications for changing the handling. Currently discriminator is a simple field which gets registered in discriminator set. What do you think about making a `discriminator` rather an modifier which could be placed for type arguments and also in other places? At the moment any use of [typeSwitch] with undeclared discriminator causes null pointers in freemarker templates and failure. Cheers, Łukasz