3 ms·
Doesn't this just describe lisp, though? Most of your questions have a dialect or library set that is specifically made to address them.
by taeric 13y ago
Doesn't this just describe lisp, though? Most of your questions have a dialect or library set that is specifically made to address them.
- iopq 13y agoNo, lisp doesn't allow you to specify your own syntax. You can't just start writing stuff without parens and define what that parses to later.
- taeric 13y agoYou'd be somewhat surprised on that point. Especially if you just take it such that everything is just trying to build up an s-expression. While the homoiconicity of the language is incredibly cool for macros and whatnot, I don't think you strictly need it. Especially not at the top level. (That is, if you made a language that "compiled" down to s-expressions, what is missing?) At the extreme end, take a look at Dylan. Though, I was really referring to your other points. It seemed every one of your "questions" is directly addressed.
- calibraxis 13y agoHow do you evaluate Common Lisp's reader macros?
- xenophonf 13y agoYes, it does. Look for "reader macros" in the Common Lisp spec, do a search for "lisp infix notation", etc.
- mcv 13y agoBut everybody defining their own syntax would not make a language "the perfect language". Quite the opposite, because nobody would be able to understand each other's code anymore. It would be the ultimate fragmented language. And because of that, I don't think a perfect language is even theoretically possible. Everybody has their own syntactical preferences, and allowing all of them means fragmentation.