News for hackers. Stuff that matters.
Re:Golang's network stack attempts to parse HTTP headers as ... by user-the-name on Thursday January 21, 2021 @09:41AM (#25859264)
The real problem is that Go does not actually have a string type. It only has byte strings which can accidentally also be text strings encoded in utf-8.

This is a very, very sloppy way to handle text, and will inevitably lead to a huge number of mistakes and broken software.

Any well-designed modern language really should make a strong separation between raw byte buffers and text strings. They are very different things, and one can definitely not trivially be converted to the other.

Re:Golang's network stack attempts to parse HTTP headers as ... by naniwaduni on Thursday January 21, 2021 @11:04AM (#25860299)
The fact is that there is no correct "text string" type, because there are no valid operations on so-called text strings in general.
Re:Golang's network stack attempts to parse HTTP headers as ... by user-the-name on Friday January 22, 2021 @04:11AM (#25869863)
That... makes no sense? Of course there are a lot of valid operations on text strings?