Errr, you wouldn't do crazy stuff like that in C# or Java, so no, this isn't a good example.
It's just you doing something stupid thinking you were being clever, as we all have.
It's just you doing something stupid thinking you were being clever, as we all have.
One kind of weird thing we did, was we had these JSON Schema definitions that were const, so all the strings like "type" were of a literal string type. Then using recursive type definitions, and the `extends` key word we were able to extract the actual shape of the data into a type.
Not exactly that useful, compared to typing it out, but it was still kind of cool.