3 ms·
To take the contrary take, I actually welcome keypaths as functions. Why? Keypaths are used in other places and useful. But they aren’t used very often, and I
by nwienert 7y ago
To take the contrary take, I actually welcome keypaths as functions. Why?
Keypaths are used in other places and useful. But they aren’t used very often, and I felt I was forgetting their syntax when I first learned Swift.
By making them useful in two areas with largely the same semantics, it helps you understand and use them in practice more.
In the end it’s all fairly subjective, but it doesn’t bother me as a relative newcomer.