jeudi 20 mars 2025
« It was one of the latest weeks big news : TypeScript is migrating to Go. But why, why not staying as it is, why not switching to C#, Rust, or another language ? Here Anders Hejlsberg, one of the co-creator of TypeScript explains almost everything. One figure struck me, if I understood well, speaking of why alternatives to TypeScript compiler struggled to attain critical mass : "we have about one hundred man year invested in TypeScript". Anyway, let's hope they will find a migration path smoother than other languages, as TypeScript 6 (JS) and TypeScript 7 (native, written in Go) may well live a long time alongside one another. »
jeudi 29 février 2024
« Une astuce combinant la surcharge (overload) et les types litéraux pour définir des types dépendants en python. À noter que l'astuce est sympa à comprendre et à essayer, mais je ne sais pas si c'est un pattern établi -- la documentation d'overload dans mypy ne mentionne pas son usage avec les types litéraux. »
jeudi 11 janvier 2024
« Early in 2023 the Svelte library was "ditching" TypeScript for JavaScript and JSDoc. This article gives some ideas about how strong typing can be achieved with JavaScript, JSDoc and VSCode (and ... TypeScript types :D). For those who are less familiar with TypeScript, (and are not afraid of stumbling people animated gifs) this article covers a lot too. »
mercredi 5 décembre 2018
« Une courte introduction à l'effacement de types et à la réification. »