David Beazley on Nostr: I think my new stance is that all use of [...] is now a code smell. Indexing, ...
I think my new stance is that all use of [...] is now a code smell. Indexing, slicing, typing, generics, comprehending, whatever. If you see an opening [, you just know that it portends something to follow.
Actually, I should start referring to [ ] as a "portent." Instead of saying something like "the expression inside the brackets", I'd say "the expression inside the portent."
Published at
2024-10-26 11:03:23Event JSON
{
"id": "5139d3ea6ce84778266f6e75ac133d86143caebf71b587c982cd58a22b49c035",
"pubkey": "54be8b44da6d3e62d80831e30a85ef15645e1fb05fcadcf16709f5bb2a350112",
"created_at": 1729940603,
"kind": 1,
"tags": [
[
"proxy",
"https://mastodon.social/users/dabeaz/statuses/113373387388241541",
"activitypub"
]
],
"content": "I think my new stance is that all use of [...] is now a code smell. Indexing, slicing, typing, generics, comprehending, whatever. If you see an opening [, you just know that it portends something to follow. \n\nActually, I should start referring to [ ] as a \"portent.\" Instead of saying something like \"the expression inside the brackets\", I'd say \"the expression inside the portent.\"",
"sig": "cec0158da0379490fc23702c5f05432ed336d043be8342cb05ccecb2dc4aa7d853b3e282cfca5329ab760650738012e1ca9eeb1c75a4869578c95b6ca652f9df"
}