[swift-evolution] Make non-void functions @warn_unused_result by default

Tino Heth 2th at gmx.de
Wed Mar 2 03:32:47 CST 2016


One simple question that hasn't been answered by anybody yet:
When a library is used by someone without even basic understanding of it (like knowing about return values), do you really think a warning will enlighten that developer?
Do we have to assume that code is written by morons relying on guessing and auto completion?

It's a sad truth that more and more software is build by complete amateurs whose most important technique is "copy & paste" without any real understanding of what they are building, but I really think we shouldn't focus on that target group — especially if this means we have to annoy those who actually know what they are doing...


More information about the swift-evolution mailing list