true_blue
Joined 4 years ago
Joined 4 years ago
I think this is called a negation type, and it acts like a logical NOT operator. I'd like it too, and I hear that it works well with union types (logical OR) and intersection types (logical AND) for specifying types precisely in a readable way.
is there a parser that says that it's Yaml 1.2 compliant that uses that regex? I don't know of one.
yaml 1.2 was released in 2009, and it fixed this problem. this is an implementation issue.
The pattern it made was also wrong, but I think the first issue is more interesting.
For this reason, I very much appreciate the dataclass decorator. I notice that I define classes more often since I started using it, so I'm sure that boilerplate is part of the issue.