Comment

Comment by sixstringtheory

I frequently am disenchanted with the new sugar the Swift project introduces. They add way too much surface area to the language by allowing too many ways to do a given thing. When you're looking at a particular line of code, it's very difficult to tell what exactly is going on without pulling up declaration sites for multiple involved things because there's too much magic.

This time around it's callAsFunction. Yeah, pretty easy to understand in their toy example. When it's deployed IRL with a ton of other things going on, and larger distances between declaration and usage, it looks like a nightmare.

I love writing Swift for myself, but I write it in a pretty boring way. When I have to work with people who get creative and clever, it's awful.

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton