3 ms·
S-expressions were the one thing that held me back from Racket. I like a lot that I've heard about the language, and I'm a believer in keeping syntax as simple
by lmm 7y ago
S-expressions were the one thing that held me back from Racket. I like a lot that I've heard about the language, and I'm a believer in keeping syntax as simple and regular as possible, but in my book a language that doesn't allow infix expressions is not usable, while a "language" that requires users to implement text-based macros to work productively in it is incomplete.
The article doesn't link to the syntax proposal, so I don't yet know what it looks like. But for the first time I now hope that Racket might become a practical language that I could use. No S-expression language has ever gone beyond niche. I'm glad Racket is willing to step past them.
- gus_massa 7y agoThere is still no official proposal, but there are some early draft / ideas: * https://github.com/racket/racket2-rfcs/pull/88 https://github.com/racket/racket2-rfcs/pull/88 * https://github.com/racket/racket2-rfcs/issues/3#issuecomment-515767377 https://github.com/racket/racket2-rfcs/issues/3#issuecomment... There is a lot of discussion in that repository that are not about syntax. For example "the big renaming" https://github.com/racket/racket2-rfcs/issues/49 https://github.com/racket/racket2-rfcs/issues/49 and "more immutability" https://github.com/racket/racket2-rfcs/issues/22 https://github.com/racket/racket2-rfcs/issues/22 .
- hyper0perator 7y agoRacket will never be a practical language, but not because it is a lisp. Clojure is a lisp and is plenty practical. Racket was designed to teach programming to young students, which unfortunately isn't a killer app for a language even though I learned a great deal from HTDP and Racket/PLTScheme. There have been other languages that were not lisps like Dart that utterly failed or like Coffeescript, which faded away because the space that they were trying to overtake (Javascript) was already deeply entrenched. If you can't appreciate Racket beyond it's syntax, it's unlikely that you'd appreciate it with a new syntax. Racket is academic niche in the same ways Haskell is. If parentheses and lack of infix symbols are sufficient to keep you away from Racket and you want much of the same level of metaprogramming and macros I suggest trying out Julia, which is considerably more practical where infix expressions and operators make sense within the numerical context: Every infix operator is a function call and has a dual syntax. But don't please don't lie to yourself that you'd ever adopt Racket if it had infix expressions. I love Racket and I still don't use it for many practical projects because the demands of work are different than academia, which I believe are the true barriers to adoption.
- neilv 7y ago> Racket was designed to teach programming to young students, I'd say that the "teaching languages" were designed for teaching students, and Racket was designed as the practical tool for implementing those languages and a cross-platform IDE to support them. As a result of this, and various subsequent community work, Racket is now practical for many purposes. I said a little more about this recently: https://news.ycombinator.com/item?id=20507549 https://news.ycombinator.com/item?id=20507549