News for hackers. Stuff that matters.
Re:Porting 30K lines of code from Flow to TypeScript by arcturus17 on Tuesday January 15, 2019 @02:13AM (#18909345)
I keep hearing that but I dunno. I’m building a fairly large side project in Express + React and I keep finding ways of doing things in ES6 - lodash is still not to be found in package.json. I think I might cave in eventually but as it stands my code feels clean and succinct and it’s all done in modern functional style.
Re:Porting 30K lines of code from Flow to TypeScript by untog on Tuesday January 15, 2019 @08:35AM (#18911009)
One example is doing deep comparison on objects. ES6 still has no equivalent for that, and it's something you can do in one line in other languages.
Re:Porting 30K lines of code from Flow to TypeScript by patates on Tuesday January 15, 2019 @10:07AM (#18911588)
Which languages? I'd think it's rare because I know no such standard function from the top of my head.
Re:Porting 30K lines of code from Flow to TypeScript by untog on Tuesday January 15, 2019 @11:34PM (#18918252)
Swift immediately comes to mind - structs are value types. Also, Kotlin has data classes.
Re:Porting 30K lines of code from Flow to TypeScript by julien_c on Tuesday January 15, 2019 @09:20AM (#18911237)
`util.deepStrictEqual` in Node at least