4 ms·
We have an informal rule that every feature that starts with the words "Why not ..." gets rejected. New features need a justification for them. :-) Often, thou
by WalterBright 5y ago
We have an informal rule that every feature that starts with the words "Why not ..." gets rejected. New features need a justification for them. :-)
Often, though, I just feel like Doctor No.
- lmilcin 5y agoHaha:) That's how I feel, too. I got new appreciation when it became my responsibility to care for productivity of a lot of people. Often people bring in new toys just to have some change in their work environment. I select for people who like to learn new things so why would I fault them for it? But I also see people don't understand how disruptive it is to productivity. People mostly see only gain side without seeing the outsize cost side of the problem. Even management doesn't seem to understand it. One time they brought me into large project that had trouble delivering and huge reliability problems and they told me my first priority problem is going to figure out how to upgrade Java from 1.6 to 11. My first question was "Why do you guys think it wasn't possible to deliver reliable applications with Java 1.6?"
- memling 5y ago> We have an informal rule that every feature that starts with the words "Why not ..." gets rejected. I wonder how much language inertia can be overcome by surveying what's been implemented multiple times and ranking them. One imagines a very minimal language with multiple implementations, say, of asynchronous I/O or common data structures. Frequently-implemented features would be good candidates for thoughtful inclusion.
- lmilcin 5y agoThat language already exists and it is called *Lisp. In a proper Lisp you can take anything that in a regular language would be a language feature and implement it as a library.
- fouric 5y agoI'm a Common Lisp user, and I would like to refine your claim. I don't think that many true "language features", like borrow checking and a static type system, can be implemented in a Lisp (without writing an entirely new language on top - Lisps are generally Turing complete, so you can always write an interpreter for another language on top, but I would claim that at that point you're not "extending your Lisp" so much as making a new one). Instead, what Lisps seem to excel at is allowing you to implement syntactic sugar. For instance, you can easily write CL macros that give you JSON/hashtable literal syntax, list comprehensions (pretend LOOP didn't exist), foo.bar to access struct elements, and infix notation - those things that people think of as being "part of the language" but don't give you any new capabilities (e.g. closures, a MOP, multiple-value returns, conditions).
- memling 5y ago> In a proper Lisp you can take anything that in a regular language would be a language feature and implement it as a library. I should have been perhaps a bit more clear, though T9 makes that hard. I mean more in the sense of standardization. In some ways, LISP makes a better case for what I've suggested simply because you can modify the syntax with such relative ease. If you see patterns emerge, it makes it easier to standardize a syntactic construction to make it less idiosyncratic.