3 ms·
No. I, and the author, argue that nothing prevents Swift from having declarative foreach/if. SwiftUI already introduces severely underdesigned awkward structur
by dmitriid 7y ago
No. I, and the author, argue that nothing prevents Swift from having declarative foreach/if.
SwiftUI already introduces severely underdesigned awkward structures to replicate existing behavior, and it shouldn't.
SwiftUI's ForEach and If are ugly unnecessary hacks that replicate existing behavior and raise the question: why aren't other constructs there?