When and how to use @noreturn attribute in Swift?
问题 I read the code block enclosed in curly braces after the keyword else in the context of a guard-else flow, must call a function marked with the noreturn attribute or transfer control using return , break , continue or throw . The last part is quite clear, while I don't understand well the first. First of all, any function returns something (an empty tuple at least) even if you don't declare any return type. Secondly, when can we use a noreturn function? Are the docs suggesting some core,