News for hackers. Stuff that matters.
Re:Office 365 is being completely rewritten in JavaScript by shrumm on Wednesday June 13, 2018 @05:00AM (#17301422)
Surprised they didn’t opt for Typescript. Then again, it’s a tweet - looking forward to a longer blog post with technical details when they’re willing to talk about it more.
Re:Office 365 is being completely rewritten in JavaScript by dspillett on Wednesday June 13, 2018 @05:50AM (#17301667)
> Surprised they didn’t opt for Typescript.

I assume that they have. Typescript compiles down to Javascript so the tweet is technically correct (written in TS, executed in JS) and there are many out there who won't have a clue what TS is but have at least some grasp of what JS is so JS was probably stated instead of TS to avoid confusion amongst the unwashed masses.

Re:Office 365 is being completely rewritten in JavaScript by sesutton on Wednesday June 13, 2018 @08:55AM (#17302563)
The tweet mentions Visual Studio Code which uses Typescript.
Re:Office 365 is being completely rewritten in JavaScript by coryfklein on Wednesday June 13, 2018 @10:50AM (#17303594)
Oh god please I hope they have. In my experience, dynamically typed scripting languages struggle to keep up with the rigorous structure enforced by statically typed languages once the project gets large enough.

Yes, in theory you _can_ write big projects well in dynamically typed languages, but in practice you get a mess of undocumented interfaces and unit tests that don't quite catch the plethora of errors not present when a static type system is in place.

I think Typescript is a great middle ground between the loose running JS hipsters and the Haskell loving Hindley-Milner type system CS researchers. You can enforce the type restraints that you want (I personally am strict about explicit "string | null" declarations) but you're still hip enough to draw the JS talent.

Re:Office 365 is being completely rewritten in JavaScript by seanmcdirmid on Wednesday June 13, 2018 @12:40PM (#17304686)
Typescript doesn’t have much Hindley Milner in it since it has way too much sub typing (even if it’s all structural).
Re:Office 365 is being completely rewritten in JavaScript by wtetzner on Wednesday June 13, 2018 @03:58PM (#17306421)
Too bad they didn't go with row types instead of structural sub-typing. Though that might not have matched with their goals of being able to type existing JavaScript. Not sure.
Re:Office 365 is being completely rewritten in JavaScript by seanmcdirmid on Wednesday June 13, 2018 @04:21PM (#17306597)
Exactly. Going structural was purely to match JavaScript interop. Heck, even Dart went with nominal sub typing, it isn’t a very common choice fo an non-functional language.
Re:Office 365 is being completely rewritten in JavaScript by sebazzz on Wednesday June 13, 2018 @05:16AM (#17301495)
Javascript can still mean that Typescript is used.
Re:Office 365 is being completely rewritten in JavaScript by Sammi on Wednesday June 13, 2018 @05:52AM (#17301676)
I'm willing to bet money that MS is actually using Typescript for almost all their Javascript.
Re:Office 365 is being completely rewritten in JavaScript by hellofunk on Wednesday June 13, 2018 @08:38AM (#17302441)
I accept that bet! Let's discuss offline.
Re:Office 365 is being completely rewritten in JavaScript by sno0ks on Wednesday June 13, 2018 @10:57AM (#17303674)
But if somebody writes in Objective C, the C parts don't make it C.
Re:Office 365 is being completely rewritten in JavaScript by crest on Wednesday June 13, 2018 @12:38PM (#17304676)
They do. Objective C is a superset of C.
Re:Office 365 is being completely rewritten in JavaScript by sno0ks on Wednesday June 13, 2018 @02:01PM (#17305531)
C++ used to be a superset of C too before they diverged, but Objective C and C++ are/were viewed, correctly, as different languages from the same family.
Re:Office 365 is being completely rewritten in JavaScript by qubex on Wednesday June 13, 2018 @05:19AM (#17301510)
Or most likely WebAssembler...