Ask HN: What's wrong with using #warning(...) for important comments in my code?

amichail1 pts0 comments

I do this a lot but unfortunately Xcode doesn t provide a way to toggle these user supplied warnings on and off, so they can easily hide actual warnings from the Swift compiler.So why doesn t Xcode have an option to hide only those warnings that I emitted using the #warning command in Swift?Some people may view this is bad coding practice, but this is for a solo project and I find it convenient to use #warning for important comments as they appear in a place where I look all the time (namely, the list of errors and warnings).What do you think? Should Xcode have a simple way to toggle these warnings on and off?

warnings warning xcode using important comments

Related Articles