You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I think it's mostly something that would get a lot of bikeshedding in the Swift Evolution Process. It would need some careful specification of how it interacts with #if.
To keep the prepreprossor minimal, this could be implemented as a function, e.g. `warning("Warning text here")`. It would be nice to have similar support for `error`, too.
Additional Detail from JIRA
md5: 75f6703a6f7bdb515a54173e2be87cb1
Issue Description:
I'm in the habit of peppering my source code with #warning tags as part of my workflow. I'm sure I'm not the only one. See:
http://indiestack.com/2016/05/artificial-swift-warnings/
Is this something that we might see in Swift someday? Is there a philosophical objection to "false" warnings, or has this issue not been discussed?
The text was updated successfully, but these errors were encountered: