Saturday, August 23, 2014 [Tweets]

Implementing a MyBool Type in Swift


The boolean Bool type in Swift underlies a lot of primitive functionality, making it an interesting demonstration of how to build a simple type. This post walks through the creation of a new MyBool type designed and implemented to be very similar to the Bool type built into Swift. We hope this walk through the design of a simple Swift type will help you better understand how the language works.


Stay up-to-date by subscribing to the Comments RSS Feed for this post.

Leave a Comment