The concept of runtime issues

Hi community, during SE-0196 I said that it would be really cool if we would eventually extend the language to emit runtime issues triggered by some compiler diagnostic directives.

This idea intrigued a few of the community members and even the core team mentioned it in the rationale:

Now I had the chance to watch the following WWDC session 'Debugging with Xcode 11'. I noticed that SwiftUI provides custom 'runtime issues' similar to the idea mentioned above.

  • Is this a hidden compiler feature or SwiftUI internal hook for Xcode?

  • In case of the former, can we expose it to the rest of the community?

cc @John_McCall @Joe_Groff @dabrahams @Douglas_Gregor

Terms of Service

Privacy Policy

Cookie Policy