3 ms·
See my comment: https://news.ycombinator.com/item?id=38117891 https://news.ycombinator.com/item?id=38117891
by prmph 3y ago
See my comment: https://news.ycombinator.com/item?id=38117891 https://news.ycombinator.com/item?id=38117891
- amelius 3y agoA C struct can also be addressed as bytes if one really wants to. The structured way of looking at the data is still more valuable, most of the time. Another example: you can easily grep through a JSON file sometimes. But what if that JSON doesn't contain newlines? In that case it would be great if the system knew how to convert the data to a multiline string that makes sense for grep. This cannot be done if the data is "just bytes". Further, JSON data can be represented with less bytes if you know the structure.