1

I have to write a lot of code like this:

extension MyData: CustomStringConvertible {
  public var description: String {
      return "x: \(x), y: \(y), z: \(z)"
  }
}

Is there a good way to automatically synthesise this repetitive code?

scrrr
  • 5,135
  • 7
  • 42
  • 52

0 Answers0