-
Notifications
You must be signed in to change notification settings - Fork 4.1k
THRIFT-5712 - Added Dart 3 Compatibility #3258
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
base: master
Are you sure you want to change the base?
Conversation
Jens-G
left a comment
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.
First, thanks for the contribution - much appreciated! I made a few comments for things that I foiund during rather quick review.
Since it is a large changeset, I would love a second opinion form someone like @mark-erickson
| _socket.onOpen.listen(_onOpen); | ||
| _socket.onClose.listen(_onClose); | ||
| _socket.onMessage.listen(_onMessage); | ||
| _socket!.onError.listen(_onError); |
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'm personally not such a big fan of overriding null checks via ! because there is a reason why these checks exist in the first place. It's nice when code runs during the shiny weather, but it should not produce strange, hard to reproduce and hard to spot errors under heavy conditions.
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.
socket is created the line above, so it cant be null
aeff758 to
e276df9
Compare
Sure. I am happy to help. Any suggestions for improvement are always welcome |
Since the pullrequest #2930 got stuck, i started over fresh and implemented it myself.
Since there was already an issue (https://issues.apache.org/jira/browse/THRIFT-5712) i commented there.
The generated classes now also expose optional values, so for that a customization will be necessary. But this is a new language feature so there is no way around.
[skip ci]anywhere in the commit message to free up build resources.