Hellope!
Recently, I’ve been messing with the wgpu package. I wanted to load a texture into GPU memory, so I looked in the core libraries for something to decode PNG files into a raw RGBA byte array. Of course, there’s a library for that: core:image . It does what it does, and does it well. However, I do have a small complaint about its documentation.
The way the package works is that you have to import the image format subpackage for it to load a private init procedure that registers its codec implementation.
It felt a bit strange to me to have an import with a side effect, as I’m used to the language’s overall explicitness.
And personally, it looks awkward/ugly/out of place having to write _ :: png to avoid the “unused import statement” warning from syntax highlighting.
My complaint isn’t about the package’s design itself, but rather the lack of documentation about it. Just a few sentences in the docs would have put me on the right track right away.