General statistics
List of Youtube channels
Youtube commenter search
Distinguished comments
About
Theo - t3․gg
comments
Comments by "" (@diadetediotedio6918) on "Civet is a beautiful attempt to fix TypeScript" video.
I was more interested in a rewrite I saw a guy doing of TypeScript that would make it's types actually mean something
1
Yeah, civet lost me at this: switch x 0 console.log("zero") /^\s+$/ console.log("whitespace") [{type: "text", content}, ...rest] console.log("leading text", content) What the heck is that supposed to look like?
1
28:10 This is more your own preference than an objective truth, there are "implicit returns" in lambdas without bodies for example, the principle in those languages is similar. If everything is an expression, then it makes sense that even a multiline function can return by just using the last evaluated one. It is not that big of a deal like you make it sound, most functional languages have this as well.
1