Wolf480pl on Nostr: Piggo :verified_horse: I mean can the compiler figure out that since you're doing a ...
Piggo :verified_horse: (nprofile…q955) I mean
can the compiler figure out that since you're doing a struct equivalent of pointer arithmetic before the null check, then the `p` is clearly not null, therefore the null check is useless?
Published at
2025-02-14 18:07:39Event JSON
{
"id": "3f0dfe507bdcea9bdd26df00f6f811e12c0b8c9afef153d14af918810e835476",
"pubkey": "f3eaf89270fc0355ce2a91d69bca71c340a0a38b7c833b8ff837e8aaa0c98e82",
"created_at": 1739556459,
"kind": 1,
"tags": [
[
"p",
"aac4cd54dd3c8e2dc2d2472d27f255a9710188185f7a152f9626cd8c1d66c750",
"wss://relay.mostr.pub"
],
[
"e",
"1080be4aff4d5433cacb8be37d33a70e4dbc479e9a2870e469239575cb07a065",
"wss://relay.mostr.pub",
"reply"
],
[
"proxy",
"https://mstdn.io/users/wolf480pl/statuses/114003572158971645",
"activitypub"
]
],
"content": "nostr:nprofile1qy2hwumn8ghj7un9d3shjtnddaehgu3wwp6kyqpq4tzv64xa8j8zmskjgukj0uj449csrzqctaap2tukymxcc8txcagqrjq955 \nI mean\n\ncan the compiler figure out that since you're doing a struct equivalent of pointer arithmetic before the null check, then the `p` is clearly not null, therefore the null check is useless?",
"sig": "fca14b187a4141ba0e7eda65e09394236bb0e0c3e5fa662ec8519f4649e9b5efdfd7b0f6876b15a8eafde69a294e1cd8b4112a02fb9d0438abacf2498ed89a9e"
}