3 ms·
Personally (and totally subjectively) I’d argue that a lot of those languages you listed are ugly, with the exception of the last two. Some of them are nice loo
by dagmx 4y ago
Personally (and totally subjectively) I’d argue that a lot of those languages you listed are ugly, with the exception of the last two. Some of them are nice looking for short bits but get really ugly for larger pieces of code. Especially when you practice defensive programming and are nested several levels deep because of the lack of optionals.
The SwiftUI integration doesn’t materially change the language much. It’s based on passing in blocks as parameters and has been a norm for obj-c as well (effectively how everyone does completion handlers).
But I think that’s why language beauty is in the eye of the beholder. To me, Swift allows flatter/cleaner code while defensively programming with lower branching and higher ergonomics. That’s beauty. That’s why guard is so nice. But I can see how it might be off putting if you’re coming from other PL paradigms.
I think a lot of it comes down to whether people want simple syntax vs simple code. C for example is simple syntax but rarely ever simple code , Swift and rust are more complex syntax but much simpler code.