iwasrobbed/Swift-CheatSheet

Something about function results, 'Void', and '()'

jpmhouston opened this issue · 2 comments

Something about function results, 'Void', and '()'

Thanks for this cheat sheet, I used it just now to remind myself how to correctly order a property's initialized value and its observer block (didGet/didSet).

I happened to see that () is mentioned as a function result without it being explained. You could also say there how it can also be spelled Void, and could also give a mention to Never.

Thanks @jpmhouston ! I'll keep the issue open for now, but also please feel free to fork this repo and add the information to it yourself in the form of a pull request :) Any help is greatly appreciated