-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Swift: Add integral type classes #11841
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for finding and sharing this work. I think it needs a bit more polish before we merge it though, e.g. there really ought to be minimal test coverage. I know you have other priorities - let me know if you'd prefer me to do the changes to this PR?
|
||
/** | ||
* A numeric-like type. This includes the types `Character`, `Bool`, and all | ||
* the integer-like types. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Two things:
- isn't a floating point type numeric as well?
- other languages don't seem to include
Bool
as a numeric type.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good point. I agree with both of these observations 👍
Co-authored-by: Geoffrey White <[email protected]>
Thanks! Yeah, I agree with all those comments. I'm not sure what the best testing approach to this would be. A naive thing would be a ql test that just selects all the relevant types from a large I'd really appreciate if you could take over this PR 🙇. |
No problem, I'll finish this PR probably this week. |
Co-authored-by: Tony Torralba <[email protected]>
…e it is a numeric type and other stuff like CharacterType is there.
…ename classes for consistency with other static languages.
I've made a PR onto this PR here: MathiasVP#5 @MathiasVP I suggest you review that and merge it (into this PR) when you're happy, then I'll merge this PR into main, hence everything will have had 2+ sets of eyes on it. Any other reviewers, you're welcome to comment on there or here as well. |
Swift: Work on integral type classes
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
I will do a follow-up to use the new classes in queries.
Checks failed - "Unable to connect to azure.archive.ubuntu.com" - sounds like we should retry in a few hours? |
Yeah. I already retried some other failing CI checks, and they seemed to succeed now. I'll just try restarting the final one right away. |
Bahh... Failed again 😭. |
I had these lying around as left-overs from some unrelated work, and they seem too useful to throw away (since most other languages have versions of these).