Skip to content

Instantly share code, notes, and snippets.

@yunustek
Created October 7, 2018 16:52
Show Gist options
  • Save yunustek/ee7814dc440e2f3e7cd9cfb13969a997 to your computer and use it in GitHub Desktop.
Save yunustek/ee7814dc440e2f3e7cd9cfb13969a997 to your computer and use it in GitHub Desktop.
Yeni Derleyici Yönergeleri
func encrypt(_ string: String, with password: String) -> String {
#warning("This is terrible method of encryption")
return password + String(string.reversed()) + password
}
struct Configuration {
var apiKey: String {
#error("Please enter your API key below then delete this")
return "Enter your key here"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment