Matt Massicotte on Nostr: Got a great question about keeping some code compatible with complete checking both ...
Got a great question about keeping some code compatible with complete checking both off and on. It is hitting a very tricky case involving a compiler bug with default values. Here's a little explaination along with a possible solution.
A nonisolated init is one of those things that just keeps coming up as a useful trick.
Published at
2024-05-23 10:57:08Event JSON
{
"id": "22a31b01277a7610a1b469e8785292bd2578fabb9c50eb3cb147d39b5a893e6a",
"pubkey": "326c9100a3d1f1ecd0d35bf9590b2633e6c22a25debb08aac79d5af903bd8672",
"created_at": 1716461828,
"kind": 1,
"tags": [
[
"proxy",
"https://mastodon.social/users/mattiem/statuses/112490042414377068",
"activitypub"
]
],
"content": "Got a great question about keeping some code compatible with complete checking both off and on. It is hitting a very tricky case involving a compiler bug with default values. Here's a little explaination along with a possible solution.\n\nA nonisolated init is one of those things that just keeps coming up as a useful trick.\n\nhttps://files.mastodon.social/media_attachments/files/112/490/042/276/297/790/original/295ce49b007e6f07.png",
"sig": "8947624dad666314cbc720937d64622651d7f67808cb5583d6b4f1e73aabba7865029e58f42d24bb1084fb059931ebda7426df2b23137706e06ab0a1570d2b86"
}