SE-0323: Asynchronous Main Semantics

Hello Swift community,

The review of SE-0323 "`Asynchronous Main Semantics" begins now and runs through September 27, 2021.

Reviews are an important part of the Swift evolution process. All review feedback should be either on this forum thread or, if you would like to keep your feedback private, directly to the review manager. When emailing the review manager directly, please keep the proposal link at the top of the message.

What goes into a review?

The goal of the review process is to improve the proposal under review through constructive criticism and, eventually, determine the direction of Swift. When writing your review, here are some questions you might want to answer in your review:

  • What is your evaluation of the proposal?
  • Is the problem being addressed significant enough to warrant a change to Swift?
  • Does this proposal fit well with the feel and direction of Swift?
  • If you have used other languages or libraries with a similar feature, how do you feel that this proposal compares to those?
  • How much effort did you put into your review? A glance, a quick reading, or an in-depth study?

More information about the Swift evolution process is available at

https://github.com/apple/swift-evolution/blob/master/process.md

Thank you,

Doug Gregor
Review Manager

26 Likes

If I'm understanding this correctly, it means that an async main which doesn't await will become exactly equivalent to a regular, synchronous main -- as opposed to the current situation, where there are subtle differences.

If so, that makes complete sense. I think that's what Swift developers would expect. So +1, let's do it.

Having the main function implicitly annotated as executing within the main actor's concurrency domain seems obvious. It seems like an oversight that it isn't already like that.

13 Likes

it means that an async main which doesn't await will become exactly equivalent to a regular, synchronous main

Yep, that was one of the intentions behind this change.

2 Likes
Terms of Service

Privacy Policy

Cookie Policy