Content pfp
Content
@
0 reply
0 recast
0 reaction

typeof.eth 🔵 pfp
typeof.eth 🔵
@typeof.eth
TIL that in TypeScript, if you define a class with readonly properties and an empty constructor, TypeScript will automatically assign the properties to the class. Not sure if I love that, tbh, since I was under the impression that TS tends to not modify logic...
4 replies
6 recasts
35 reactions

Phil Cockfield pfp
Phil Cockfield
@pjc
maybe they are encouraging people to not use `class` by sprinkling scary magic there! 😅🥹
0 reply
0 recast
3 reactions