Skip to content

Instantly share code, notes, and snippets.

@below below/Optional.swift

Created Nov 11, 2016
Embed
What would you like to do?
What the What?
import Foundation
let scheme : String! = "https" // "https"
let host = "example.com" // "example.com"
let urlString = "\(scheme)://\(host)" // "Optional("https")://example.com" // <-- WHAT?
let url = URL(string: urlString) // nil
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.