There are imperative, interrogatory, and informational messages. The last one is sometimes achieved via success/failure return values, but it can be implemented using notifications/events for greater flexibility.
„Swifty - Learn to code Swift!“ is an interactive app that teaches you to code in Swift with 200+ interactive lectures. Learn by coding and get instant feedback! Swifty is already out there on the iOS AppStore, and has been for some weeks now. With this major update (1.4) Swifty has evolved into a better app than ever before! Swifty offers you now more than 200 interactive lectures.
Download Swifty on the iOS AppStore.