how to tell if a language is compiled:
are there semicolons at the end of every line?
no: it’s interpreted
yes: it’s compiled
@kasdeya this implies that matlab/octave is compiled iff you don’t print anything.
@kasdeya compiled languages want to be like C and interpreted languages want to not be like C?
@kasdeya [calvin's dad voice] despite semicolons being a part of the language, javascript is interpreted (bc the semicolons are optional)
@kasdeya interpreted languages having a REPL where the semicolon is annoying?
@eclairwolf @kasdeya javascript semicolons are optional because js is optionally (jit-)compiled, it all checks out
@eclairwolf
Only because of Automatic semicolon insertion! There are cases where it will fail, like having a newline between a return and the return object for example.
@kasdeya
@eclairwolf @h3mmy @kasdeya It seems to be a uniquely JavaScript problem, probably exacerbated by quirks of the grammar. The language Icon also has automatic semi-colon insertion and doesn't have the problems JavaScript has. But Icon is a little more Algol like than JavaScript is.
@eclairwolf @h3mmy @kasdeya im grateful to javascript for giving my main silver lining to the erosion of the world wide web and metastasizing of Apps in its place: the potential for a world with proportionally less javascript