let type = "_SomeService._tcp."
and all was fine.
A week later I tried to use:
let className = type(of: someThing)
and got a confusing error message about a String. (someThing was definitely not a String)
It took me quite a while to remember the "let type" line.
All became normal again when I changed this line to:
let serviceType = "_SomeService._tcp."
Should there be a compiler-warning like: "The name 'type' might clash with 'type(of:)'" ?