Anonymous value class ?
Remi Forax
forax at univ-mlv.fr
Wed Jul 11 15:57:52 UTC 2018
While testing how value types can be used, i had to find workarounds around the fact that there is no way to create an anonymous value class using the compiler.
If we follow the idea of having a classical constructor being transformed to a factory method, i think we should also allow anonymous value class.
new __ByValue Object() {
...
};
a synthetic factory $make$ being generated instead of a synthetic constructor.
Rémi
More information about the valhalla-spec-experts
mailing list