← Home ← Back to /g/

Thread 106556288

23 posts 4 images /g/
Anonymous No.106556288 >>106556349 >>106556402 >>106556424 >>106556571 >>106556592 >>106557923 >>106558059 >>106558819 >>106558877 >>106559087 >>106559175 >>106559304 >>106560913 >>106560914
About to try TypeScript, what am I in for?
Anonymous No.106556349
>>106556288 (OP)
JavaScript but worse
Anonymous No.106556402
>>106556288 (OP)
JavaScript but better
Anonymous No.106556424
>>106556288 (OP)
Javascript but the same
Anonymous No.106556571
>>106556288 (OP)
JavaScript but python
Anonymous No.106556592
>>106556288 (OP)
JavaScript but Types
Anonymous No.106557923 >>106557940
>>106556288 (OP)
Javascript but compilation errors from Hell
Anonymous No.106557940
>>106557923
Better than [object undefined]
Anonymous No.106558059 >>106559532 >>106560581
>>106556288 (OP)
You're about to experience a type system more powerful, expressive, encompassing and correct, than available in practically every truly statically typed language. The fact that it sits on top of JavaScript is nothing short of a cosmic joke. The forces-that-be of the universe having a profound sense of irony.

...
That and you're going to be spending a lot of time cursing about it, because some things in how it works are incredibly obnoxious to grasp properly.
Anonymous No.106558185
fuck typescript
Anonymous No.106558819
>>106556288 (OP)
JavaScript but more typing
Anonymous No.106558877
>>106556288 (OP)
It's good, fixes most of the major issues with Javascript
Anonymous No.106559087
>>106556288 (OP)
Something fkn useless that lets you write perfectly working code that won't let you "compile" it to an optimized version unless you jump through it's stupid hoops.
Anonymous No.106559175
>>106556288 (OP)
>what am I in for?
Argument of type 'Function' is not assignable to parameter of type '(value: any, index: number, array: any[]) => unknown'.

and other such nonsense
Anonymous No.106559304
>>106556288 (OP)
If it's not something running in the browser use tsx or else you'll cry when trying to run your typescript code or just use bun or deno instead of node
Anonymous No.106559376 >>106559689
JavaScript but reinvented by saars
Anonymous No.106559532
>>106558059
>You're about to experience a type system more powerful, expressive, encompassing and correct, than available in practically every truly statically typed language
Not true for Haskell or even Rust.
Anonymous No.106559689 >>106559715
>>106559376
>JavaScript but reinvented by saars
Anders is a Nord, afaik.
Anonymous No.106559715
>>106559689
I don't care, its a Microsoft product
Anonymous No.106560581
>>106558059
On the contrary, its types system is less sound than type systems in most other statically typed languages.
Anonymous No.106560913
>>106556288 (OP)
Javascript with types
Anonymous No.106560914
>>106556288 (OP)
Javascript but for production
Anonymous No.106561331
JS with types, and sometimes completely unreadable errors. Fucking frameworks.