New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support literal true and false types #117
Conversation
Hi @danog thank you very much! I wanted to add some things but I can't write to the repository because it is owned by an organization, see https://github.community/t/how-can-we-enable-allow-edits-from-maintainers-by-default/2847 ; could you add me as a maintainer to this very repository, as it was done there? Thanks! |
Done! |
Perfect, thanks! Just pushed, I'll let you some time to review the changes and tell me if everything is ok by your side. 🙂 |
Looks great, thanks! |
Actually I missed one thing: Anyway when it's ready I'll gladly publish a new release, that is well deserved! |
I'll do it tomorrow, no worries! |
Now that I took a look at it, maybe extending ScalarType isn't such a good idea after all: like with the literal null type, which doesn't extend ScalarType, we want to treat only the literal null case, without handling or supporting casts, which would make little sense given that we explicitly specified a literal type. |
I understand your concern; In the meantime, we need to be consistent with the existing features. 🙂 |
Hi @danog I changed to boolean types to be handled as scalar; I also changed some things to be more consistent with other "value types" ( Anyway, thanks for the original work! |
There you go sir 🙂 |
Yay, thanks, almost forgot about this PR :) |
This PR adds support for literal true and false types.