Comment

Comment by shagie

As an aside, this is one of the spots where GPT does a really good job of fixing things.

    Reword the following passage.  Change euphemisms to wording that has similar meaning though no negative conotations.  Indicate changed words by putting them in "{{word}}"
    ###
    Standards are supposed to lead
    ...
    Why are such requests made? Often because of arithmetic bugs. And what is a non-null pointer from malloc(0) good for? Absolutely nothing, except shooting yourself in the foot.
    ###
To which it returned:

    Standards are meant to provide the groundwork for a better world by enabling code portability. Real standardization necessitates {{managing}} a variety of compiler and library implementations while maintaining sensible rules. The saga of the realloc story demonstrates that C standardization does not operate in this fashion any longer.

    As C89 was being crafted, there was a {{unconventional}} thought of a "zero-length object": Supporters proposed that a non-null pointer to such an object should be given for requests for zero-byte allocation.

    Why do such requests come about? Frequently due to miscalculations. And what is a non-null pointer from malloc(0) useful for? Nothing, apart from {{setting oneself up for failure}}.

It changed (along with some wording around to make the changes fit):

heading cats -> managing

neurodivergent -> unconventional

shooting yourself in the foot -> setting oneself up for failure

parent shagie 3 years ago

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton