Example that does not compile: let randomArray = randomArray(withCapacity: 4096)
Compiler error: “Variable used within its own initial value” The variable name unfortunately clashes with the function name. This problem forces the developer to think about an alternative name. IMHO that’s suboptimal since many times the most canonical naming would be one where these two go by the same name. It’s not a big problem in practice but I wonder if there are plans to change this? Thanks, Michael Gubik _______________________________________________ swift-evolution mailing list swift-evolution@swift.org https://lists.swift.org/mailman/listinfo/swift-evolution