Swift-CheatSheet icon indicating copy to clipboard operation
Swift-CheatSheet copied to clipboard

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

Open jpmhouston opened this issue 8 years ago • 2 comments

jpmhouston avatar Oct 12 '16 20:10 jpmhouston

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.

jpmhouston avatar Oct 12 '16 20:10 jpmhouston

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

iwasrobbed avatar Oct 12 '16 21:10 iwasrobbed