¿Cómo se llama la sintaxis Swift ".bar"?
Swift tiene esta útil sintaxis:
enum Foo {
case bar
case baz
}
func hoge(foo: Foo) {
}
hoge(foo: .bar) // This
Que se refleja en lugares distintos deenum
s:
struct Qux {
static let `default` = Qux()
}
func hoge(qux: Qux) {
}
hoge(qux: .default) // This
No estoy seguro de cómo llamar a esto en conversación / tickets. ¿Quizás "sintaxis de punto inferido por tipo"? No estoy seguro¿Esta sintaxis tiene un nombre oficial? Si es así, ¿qué es?