Re:The Great CoffeeScript to Typescript Migration of 2017
by pygy_ on Saturday May 16, 2020 @08:37AM
(#23202903)
That is just not true. You can write semi-less JS modules, strict mode and ASI are orthogonal.
Re:The Great CoffeeScript to Typescript Migration of 2017
by CuriousSkeptic on Saturday May 16, 2020 @10:23AM
(#23203595)
Indeed, just read the spec: https://tc39.es/ecma262/#sec-automatic-semicolon-insertion
No mention of strict mode in the section of ASI. Could have sworn that the ASI issues I’ve ran into in the past was resolved by using strict mode, not sure what I’ve got that from.
Edit: I was mistaken about strict mode.