Skip to content

Instantly share code, notes, and snippets.

@b3ll
Created July 3, 2014 23:14
Show Gist options
  • Save b3ll/72ec2687096794b82cda to your computer and use it in GitHub Desktop.
Save b3ll/72ec2687096794b82cda to your computer and use it in GitHub Desktop.
Revolutionizing YES / NO
import Cocoa
var MAYBE: Bool {
get {
return Bool(Int(arc4random_uniform(2)))
}
}
var thisIsTotallyAGoodIdea = MAYBE
@dangeredwolf
Copy link

Incredible code. Why didn't I think of this?

@emenegro
Copy link

emenegro commented Jul 4, 2014

Let's file a radar right now to include this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment