News for hackers. Stuff that matters.
Re:Improving the usability of C libraries in Swift by zffr on Friday January 23, 2026 @11:21AM (#46734318)
You listed 8 types, and this is because there are 3 axes that each have 2 values

- Mutable or not

- Typed or Raw

- Single object, or Buffer

Given one kind of pointer, you can convert to any other kind of pointer, but you are responsible for knowing if it’s safe to do.

The API is not super intuitive, but I can see how it makes it more clear what you are doing in your code.

There are no comments on this comment yet.