Cédric Belin on Nostr: Remember: TypeScript is an unsound type system. So when you read or hear "type safe", ...
Remember: TypeScript is an unsound type system. So when you read or hear "type safe", it's simply not true.
On the other hand, JavaScript is type safe: you have a total guarantee that your variables/parameters/function returns are all of "any" type.
#JavaScript #TypeScript #WebDev
Published at
2025-01-03 09:09:21Event JSON
{
"id": "c022faf209b315ce25c8e90e352471e762566018eb9b1c5da93436c4d59436f7",
"pubkey": "b68c9aaff1f3f7bbb809cdaf4b8567efcde30e09b5ead7c0df416d94499dde13",
"created_at": 1735895361,
"kind": 1,
"tags": [
[
"t",
"javascript"
],
[
"t",
"typescript"
],
[
"t",
"webdev"
],
[
"proxy",
"https://mastodon.social/users/cedx/statuses/113763638405599059",
"activitypub"
]
],
"content": "Remember: TypeScript is an unsound type system. So when you read or hear \"type safe\", it's simply not true.\n\nOn the other hand, JavaScript is type safe: you have a total guarantee that your variables/parameters/function returns are all of \"any\" type.\n\n#JavaScript #TypeScript #WebDev",
"sig": "10a6d2d5c45a9eb2fd3503db4041d4f2b2a9cac05098e7a10a963d80b58d9fa41c9a3be7c1f71a3dde0358d36da93319ad7125eb5cbcd74fd180407add5df6f7"
}