Advent of Swift

26 points by hoistbypetard


pta2002

I did AoC in swift too, and second a lot of these points.

Regarding Regex, swift has a theoretically very nice library called Regex Builder, which should let you make some fairly complicated parsers really easily and in a composable fashion, but… emphasis on should.

The API is fairly nice, but it just doesn’t work! There’s tons of bugs and seemingly no one from apple who is interested in fixing them. It’s a shame and meant that things as simple as a capture inside a repeated element just don’t work (crashes at runtime). Thankfully AoC this year wasn’t very parser-heavy, but there were a few puzzles where I had to make a slightly wonkier parser than I’d have to if I wasn’t trying to work around bugs in RegexBuilder.

alper

Some parts of the language still feel unfinished or unpolished, in spite of being around for quite some time.

It's difficult to advocate for using Swift seriously for anything outside of the Apple ecosystem.