Profoundly Nerdy on Nostr: There is an interesting discussion in on the #Rakulang github repo about the toggle ...
There is an interesting discussion in on the #Rakulang github repo about the toggle method.
https://github.com/rakudo/rakudo/issues/2089I've never understood the utility of this one. Can someone explain an ideal use case?
It seems like it's just semantic sugar on top of just using logical not to invert a Bool blindly. Am I missing something? Possibly something obvious?
#programming
Published at
2024-10-28 18:29:36 UTCEvent JSON
{
"id": "b2b7735fc459214ba15633cea6f20810f1328e9fff17ab061d32dc123e7d46fa",
"pubkey": "473db265af67c79a31f78d116c0a0d1bac8860faa5e0a50e2cc234329e90040e",
"created_at": 1730140176,
"kind": 1,
"tags": [
[
"proxy",
"https://bitbang.social/@profoundlynerdy/113386466581336399",
"web"
],
[
"t",
"rakulang"
],
[
"t",
"programming"
],
[
"proxy",
"https://bitbang.social/users/profoundlynerdy/statuses/113386466581336399",
"activitypub"
],
[
"L",
"pink.momostr"
],
[
"l",
"pink.momostr.activitypub:https://bitbang.social/users/profoundlynerdy/statuses/113386466581336399",
"pink.momostr"
],
[
"-"
]
],
"content": "There is an interesting discussion in on the #Rakulang github repo about the toggle method.\n\nhttps://github.com/rakudo/rakudo/issues/2089\n\nI've never understood the utility of this one. Can someone explain an ideal use case? \n\nIt seems like it's just semantic sugar on top of just using logical not to invert a Bool blindly. Am I missing something? Possibly something obvious?\n\n#programming",
"sig": "51a8932b1ac8024d1a8fca8671e84afd9e3fae50d0df5eb497693d153ea0ab63fa8204051721b0806ab12f3c810a2ecb453995333b187653aa8504a8a1c79d64"
}