[swift-evolution] [Pitch] #warning

Chris Lattner clattner at apple.com
Sun May 29 14:44:18 CDT 2016


> On May 28, 2016, at 8:26 PM, Jon Shier via swift-evolution <swift-evolution at swift.org> wrote:
> 
> 	I appreciate the sentiment, but I think we should reserve warnings for actual compiler diagnostics.

+1.  The IDE should just pick up "// FIXME: “ comments and summarize them as issues.  Xcode already shows them in its jump bar.

That said, I can see a use for #error, as Charlie shows downthread:

#if os(OSX)
	/// ...
#if os(Linux)
	/// ...
#else
	#error("This OS isn't supported yet.").
#endif

-Chris


More information about the swift-evolution mailing list