Skip to content

Instantly share code, notes, and snippets.

@derrh
Created May 2, 2018 23:32
Show Gist options
  • Save derrh/6ed6252a933e38f1b04089165ff1a002 to your computer and use it in GitHub Desktop.
Save derrh/6ed6252a933e38f1b04089165ff1a002 to your computer and use it in GitHub Desktop.
Hello, Silicon Slopes!
func format(date: Date) -> String { ... }
let dueDate = Date?
print("""
Assignment
--
due: \(dueDate.map(format(date:)) ?? "none")
"""
@derrh
Copy link
Author

derrh commented May 2, 2018

Hmm, it looks like Github's syntax highlighting can't handle Swift 4 multi-line string literals.

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