Skip to content

Instantly share code, notes, and snippets.

@jimmythai
Created April 12, 2018 11:38
Show Gist options
  • Select an option

  • Save jimmythai/a26e36d135b4a85cb20738f42724ff7d to your computer and use it in GitHub Desktop.

Select an option

Save jimmythai/a26e36d135b4a85cb20738f42724ff7d to your computer and use it in GitHub Desktop.
///////////////////////////////////////////////////////////////////////////////////////////////////////////////
// The key questions we ask ourselves in these cases is: does the nil value occur due to a programmer error? //
///////////////////////////////////////////////////////////////////////////////////////////////////////////////
// Somthing like this:
let url: URL? = URL(string: "https://gist.github.com")
// To this:
let url: URL = URL(string: "https://gist.github.com")!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment