Simon Willison on Nostr: It took me an embarrassingly long time to realize that type hints (in Python and in ...
It took me an embarrassingly long time to realize that type hints (in Python and in TypeScript) aren't so much about avoiding accidental type errors at runtime... they're much more about enabling really good editor autocomplete
Published at
2024-06-24 04:45:41Event JSON
{
"id": "846e108ac09b6dcf2ae0363e0061d14280e5f73800cf9d58ea6ec8c10cf11fa7",
"pubkey": "4315a187e024818492e61938093ba683dae66624d202cd43738de5b8ba198c0f",
"created_at": 1719204341,
"kind": 1,
"tags": [
[
"proxy",
"https://fedi.simonwillison.net/@simon/112669775751046597",
"web"
],
[
"proxy",
"https://fedi.simonwillison.net/users/simon/statuses/112669775751046597",
"activitypub"
],
[
"L",
"pink.momostr"
],
[
"l",
"pink.momostr.activitypub:https://fedi.simonwillison.net/users/simon/statuses/112669775751046597",
"pink.momostr"
],
[
"expiration",
"1721800576"
]
],
"content": "It took me an embarrassingly long time to realize that type hints (in Python and in TypeScript) aren't so much about avoiding accidental type errors at runtime... they're much more about enabling really good editor autocomplete",
"sig": "a442f16cf13b9ec5d5095caf3d435fe04cc06d71c7ceefb9b7855b82c047a97e782e91bf640f5935e23085a84046cabf259e4c4b9cf69f240dd418e78cc1da1c"
}