> On 19 May 2016, at 18:06, Krystof Vasa <kv...@icloud.com> wrote:
> 
> I'm wondering which scenario this is actually wanted behavior:
> 
> - strings that are for user interaction? Definitely not.

There would almost certainly be other manipulation going on that renders this 
moot for user facing strings, for instance, you would never interpolate a date 
without running it through an NSDateFormatter.


> - logs? To be honest, the logs riddled with Optional(value) are pain to read. 
> Following example:
> 
> key1: Optional("Value")
> key2: nil
> 
> vs
> 
> key1: Value
> key2: nil
> 
> Which is more readable in the log?
> 

Which is a ore honest representation of the variable you are logging?


_______________________________________________
swift-evolution mailing list
swift-evolution@swift.org
https://lists.swift.org/mailman/listinfo/swift-evolution

Reply via email to