2 ms·
> To maintain sanity, people will start carving out bits of the language to create "dialects" and restrict themselves to only those dialects, at which point you
by lmm 12y ago
> To maintain sanity, people will start carving out bits of the language to create "dialects" and restrict themselves to only those dialects, at which point you have effectively created multiple languages, each with their own idioms and learning curves.
Sure, scripting Scala looks rather different from high-performance Scala. But there's a continuity between them, which allows you to customize the appropriate "dialect" for a particular project, and avoids the overheads of using multiple languages in a project that straddles one of the lines.
> how would you go about turning it on and off
There's already a certain level of syntax customizability in most languages, e.g. I can use an import that will make symbols ('grep) treatable as strings. Whether this is a single language or a suite of languages designed to work closely together is an academic question, but I certainly think it would be possible to write something that allowed you to write (say) C-like code and Python-like code with a much smoother interface between them than there currently is when calling C from Python.