> > I’m minorly opposed, because it feels like a slippery slope. What about > function bodies? etc > > func foo() -> Int { 3 } // should this be allowed?
Yes, why not? What is fundamentally different about a function body compared to a getter body (or a closure body ;-)) that means, if we accept it for getters, we should not also accept it for function bodies. _______________________________________________ swift-evolution mailing list swift-evolution@swift.org https://lists.swift.org/mailman/listinfo/swift-evolution