You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It would be nice if we could omit the keyword `return` in a property's getter that contains one line of code, just like you can omit it in map, filter, etc.
I propose allowing
vardelimiter: String {
get { sharedDefaults.string(forKey: "delimiter")! }
set { sharedDefaults.set(newValue, forKey: "delimiter") }
}
Currently this is required
vardelimiter: String {
get { returnsharedDefaults.string(forKey: "delimiter")! }
set { sharedDefaults.set(newValue, forKey: "delimiter") }
}
The text was updated successfully, but these errors were encountered:
Additional Detail from JIRA
md5: d3f650488680b29e12a0dc87eb1486e4
Issue Description:
It would be nice if we could omit the keyword `return` in a property's getter that contains one line of code, just like you can omit it in map, filter, etc.
I propose allowing
Currently this is required
The text was updated successfully, but these errors were encountered: