News for hackers. Stuff that matters.
Re:Go is still not good by silverwind on Friday August 22, 2025 @10:26AM (#44985099)
> What if the file name is not valid UTF-8, though

They could support passing filename as `string | []byte`. But wait, go does not even have union types.

Re:Go is still not good by lblume on Friday August 22, 2025 @10:38AM (#44985224)
But []byte, or a wrapper like Path, is enough, if strings are easily convertible into it. Rust does it that way via the AsRef<T> trait.