Skip to content

Instantly share code, notes, and snippets.

View Reflejo's full-sized avatar

Martín Conte Mac Donell Reflejo

View GitHub Profile
@Reflejo
Reflejo / Options.swift
Last active August 29, 2015 14:13
Simplified version
#!/usr/bin/env xcrun swift -O
struct MyOptions: RawOptionSetType, BooleanType {
var boolValue: Bool { return self.rawValue != 0 }
var rawValue: UInt
init(rawValue value: UInt) {
self.rawValue = value
}
init(nilLiteral: Void) {