Most of the Rust port was done by a single engineer over ~8 months, while the rest of the team kept shipping features: no code freeze.
Read the full story: medium.com/flow-type/flow…
@justboriss Yes, you can fix it by changing the code. If only there was a tool that would point out the problem in the first place - so you knew you had to make the fix 🤔
@jaydenfyi Exactly, better to have your type-checker actually enforce you're doing the right thing and prevent your app from crashing! The actual Flow error message is longer and describes:
- Either make `Array<string>` and `Array<LogLine>` the same
- Or make array a `ReadonlyArray`
TypeScript lets you pass Array<string> where Array<string | Error> is expected, so the function pushes an Error to your string array. Flow rejects it.
TS Playground, 0 errors: typescriptlang.org/play/?#code/C4…
Flow Playground, rejects with an error: flow.org/try/#1N4Igxg9g…
👀 Is this Flow, or TypeScript?
Is Flow coming back?
- Flow syntax aligns with TypeScript
- Flow has pattern matching
- Useful React hooks/component/renders syntax
- Compiler has been recently ported to Rust
I'll keep an eye on it for you, but this is promising!
Another: TypeScript only validates the signature of a type-guard, not the body.
Flow validates the body and rejects predicates that lie about what they check.
If your "Flow vs TypeScript" take is from 2021, it's out of date. Flow looks like TypeScript now - but it has pattern matching and React component syntax, while catching runtime crashes TypeScript waves through. Examples below. 👇
47K Followers 2K FollowingSoftware Engineer. Prev, Riot. @MasterDotDev instructor. TanStack, React, C++ when I'm feeling nasty. Beer, whiskey, coffee snob. Book lover. Jr Dev for life.
45K Followers 3K FollowingSpeaker, engineer, 🕸️📦 @webpack Core Team, dad, views are my own. SWE @microsoft making @rushstack; Monorepo Janitor for ODSP. Always bet on #JavaScript
56K Followers 596 FollowingFrenchy Front-End Engineer at Facebook. Co-creator of React Native and Prettier. Creator of Excalidraw, "CSS-in-JS", Yoga and React Conf.
27K Followers 4K FollowingEngineering Manager / AI Safety @runwayml | ex Eng Team Lead @Stedi | AWS Hero | Co-founder at @cloudashdev | @eggheadio instructor | AWS Certified | Be kind
11K Followers 2K Following🇺🇸 in 🇪🇸 https://t.co/ZwKoKbrtyL
Author of @reduxform, @finalformjs, and @ciding_app.
Revolutionizing mc² industry at @FuseEnergy.
👂 @happyhourdotfm
12K Followers 2K FollowingJavaScript Infrastructure & Tooling at Bloomberg. Co-chairing @TC39. Likely to tweet tech stuff about JS & software performance. Opinions are my own.
3K Followers 4K FollowingEngineering More Interesting.
楽しい仕事と楽しい人生を実現したい。
My opinions are my own, and I will never allow others to control my opinions.
120 Followers 8K FollowingRelentless learner
Learning Machine.
Writing is thinking .
Building https://t.co/Y4orG6U1cw
Pythonista, Engineer, and Software consultant. For hire .
674 Followers 1K FollowingSenior Software Engineer with more than 25 years of experience. Java certified but Rust enthusiastic. Father of two. 🖐 DMs open!
2K Followers 456 FollowingI build things and stuff. Shift-left maximalist. Prev Facebook (some tooling stuff, some programming lang stuff, some traffic-infra stuff)