Elektrine lite

← Feed

@sean@scoat.es

Post #2574541

2026-05-13 19:42 UTC

Today's #Swift lessons: 1. the `switch` version of `consuming func …` on `variable` is `switch consume variable` (`consuming` is a good way to disarm some footguns) 2. The compiler gets REALLY confused when I do optional chaining with an otherwise-consuming call. I continue to enjoy this language (though I do take issue with no visibility keyword that indicates "private but extensions within this same module can access”, even though "private" + extension *in the same file* works that way).

Replies (0)

No replies.