This proposal seems great in conjunction with @bterlson's pattern matching proposal. In particular, using sealed object (and maybe array) literals is a good way to assert that there is nothing else, while at the same time not giving multiple meanings to an object literal on the left-hand side.
This proposal seems great in conjunction with @bterlson's pattern matching proposal. In particular, using sealed object (and maybe array) literals is a good way to assert that there is nothing else, while at the same time not giving multiple meanings to an object literal on the left-hand side.