Skip to content
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

update to shipped language feature (remove codegen, experimental things) #5

Merged
merged 2 commits into from Dec 5, 2022

Conversation

ktoso
Copy link
Member

@ktoso ktoso commented Dec 5, 2022

Swift 5.7 includes distributed actors now, and we no longer need to do any of the experimental tricks, or source generation in order to showcase the feature.

This implementation is using official released toolchains and is pretty similar to what was presented in https://developer.apple.com/videos/play/wwdc2022/110356/ and previously in this sample repo. I.e. we still use http client and don't really do anything smart, but the focus is about showing the "shape" of an implementation :-)

@ktoso ktoso force-pushed the wip-update-to-shipped-feture branch from 35c4a1a to cb69375 Compare December 5, 2022 04:06
@ktoso
Copy link
Member Author

ktoso commented Dec 5, 2022

Optional review @yim-lee if you have some time :) (can't assign as reviewer meh)

Copy link
Member

@yim-lee yim-lee left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

❤️

case .failure(let error):
let status: HTTPResponseStatus
let errorString: String
if let error = error as? HTTPActorSystemError {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Perhaps we can use switch instead of if-else?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmm, not sure I like switch for this kind of thing :~ Mind if I keep it? :)

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sure! :)

@ktoso ktoso force-pushed the wip-update-to-shipped-feture branch from 6fb6b62 to f55e8ea Compare December 5, 2022 04:58
@ktoso ktoso merged commit e37e67b into main Dec 5, 2022
@ktoso ktoso deleted the wip-update-to-shipped-feture branch December 5, 2022 04:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants