This initializer will throw an error complaining that "with" is implied for the first parameter of an initialiser; did you mean name? "with" is implied for the first parameter of an initialiser; did you mean name?
init(withName: String){ }
I'm not sure what this means if it automatically provides the name of an external parameter withName , if I call it a name or what ...
If I change it to
init(name: String){ }
any attempt to call it init(with: "joe") or init(withName: "Joe") will fail. Therefore, I have no idea that the error message tells me and how I can declare it, so I call it init(withName: "Joe") .
source share