News for hackers. Stuff that matters.
Re:Office 365 is being completely rewritten in JavaScript by nameiscubanpete on Wednesday June 13, 2018 @04:06PM (#17306473)
I'd almost guarantee that it's Typescript. But being a superset of Javascript, it's still correct to call it Javascript.
Re:Office 365 is being completely rewritten in JavaScript by jorams on Wednesday June 13, 2018 @05:41PM (#17307232)
It's really not. YAML is a superset of JSON, but you wouldn't call a YAML document a JSON document. The set of all colors is a superset of the set containing only orange, but calling every color orange makes no sense.
Re:Office 365 is being completely rewritten in JavaScript by pnloyd on Thursday June 14, 2018 @12:32AM (#17309297)
I don't think it's exactly right to call it a superset either..

It adds types and constraints that have no effect on the resulting transpiled code besides an insurance that said type constraints are being met.

To better illustrate what I mean, in the start of a Unix script you sometimes have them augmented with #!interpreter. But this extra contextual information is not a superset of the scripting language itself. Likewise Typescript is also an augmentation that lives within the code that provides contextual information to the Typescript transpiler itself, but does not necessarily effect the actuall produced JavaScript.

Re:Office 365 is being completely rewritten in JavaScript by nameiscubanpete on Thursday June 14, 2018 @06:14PM (#17315913)
I see your point and not necessarily disagreeing, but noting the creators of typescript refer to it as a superset.
Re:Office 365 is being completely rewritten in JavaScript by kumarharsh on Thursday June 14, 2018 @01:08AM (#17309451)
All colours don't boil down to "orange" in Human eyes, so calling all colours orange really would be pointless. Typescript does compile down to JS, without which it can't even run. So yeah, when you're talking about the runtime or performance, Typescript === Javascript.
Re:Office 365 is being completely rewritten in JavaScript by golergka on Thursday June 14, 2018 @09:36AM (#17311550)
> Typescript does compile down to JS, without which it can't even run. So yeah, when you're talking about the runtime or performance, Typescript === Javascript.

By this kind of logic, C++ === machine code. It compiles down to it, right?

Re:Office 365 is being completely rewritten in JavaScript by nameiscubanpete on Thursday June 14, 2018 @06:01PM (#17315814)
It's really kinda both, but context sensitive.
Re:Office 365 is being completely rewritten in JavaScript by golergka on Wednesday June 13, 2018 @06:14PM (#17307460)
It's the other way around - if A is a superset of B, it's correct to call B as A, but not to call A as B.