r/programming • • 1d ago

Announcing TypeScript 7.1 RC

https://devblogs.microsoft.com/typescript/announcing-typescript-7-1-rc/?r
172 Upvotes

11 comments sorted by

33

u/Bitter_Ad3906 1d ago

Worst thing I ever saw "import source source1 from "./plugin.wasm"", better regular import with {type:"wasm"}. New keywords for specific usage only make language more complex without good syntax.

21

u/phenxdesign 1d ago

I see it more like a pendant of the "type" keyword :

import type Foo from "bar"

This kind of syntax is not new, just a new keyword.

1

u/Bitter_Ad3906 8h ago

import type for type was implemented long time ago, also we have with {type:xx}, so instead add new "import source" we can reuse what have. I still can accept it if it can be reused by vm for ts/js syntax, but for only wasm I not like this idea.

0

u/Jason_Dillon_90_2735 15h ago

Folks keep asking what the RC actually changes. Don't expect new syntax, it's mostly the compiler rewrite.

6

u/HeyItsBATMANagain 1d ago

All of those sound like nice improvements and Im always excited for new TS releases. But with large projects, switching to tsrs has honestly been better for my ram usage

1

u/ChemistrySimple5185 12h ago

Nice to see the native compiler work getting close to stable. For those who've tried the RC on a bigger project, did the faster builds change how you use watch mode?

1

u/NastroAzzurro 11h ago

This should’ve been the 7.0 release honestly.

-3

u/atikoj 3h ago

who cares? AI does the job

-66

u/WeirdIndividualGuy 1d ago

Wake me up when it’s past release candidate

45

u/-S-P-Q-R- 1d ago

I am a non-contributor to the community and I only care about using the end-result, not contributing. Why am I subscribed to this subreddit at all I wonder?