Axel Rauschmayer on Nostr: There is a proposal to add optional type annotations to JS: But I’m wondering: ...
Published at
2025-09-24 12:56:12 UTCEvent JSON
{
"id": "9cc9eb4fd82d09f9d62b5c9242299237b7b95594d097f4f12f025ae21507ffde",
"pubkey": "7a7a0978cc46ef7fd548fb125e51c04de7d4ca639417a21b56aa95e3711c0b38",
"created_at": 1758718572,
"kind": 1,
"tags": [
[
"proxy",
"https://fosstodon.org/@rauschma/115259380389496121",
"web"
],
[
"proxy",
"https://fosstodon.org/users/rauschma/statuses/115259380389496121",
"activitypub"
],
[
"L",
"pink.momostr"
],
[
"l",
"pink.momostr.activitypub:https://fosstodon.org/users/rauschma/statuses/115259380389496121",
"pink.momostr"
],
[
"-"
]
],
"content": "There is a proposal to add optional type annotations to JS: https://github.com/tc39/proposal-type-annotations\n\nBut I’m wondering: Wouldn’t be better if browsers supported type stripping (like Node.js etc. already do): It feels cleaner to me.\n\nJSPM already supports client-side type stripping (if a file has the filename extension .ts): https://jspm.org/docs/cli/",
"sig": "0c2f49986503516e44ce4bced81c1889d18db5825f52bcc1a0b1d92251ea4eeade340870b67ba0f1cf5bfc309ccc67ed46c3853300d8bafdbfe2fb47f4c18496"
}