6 ms·
This is racket's [rhombus], which might be an interesting second link here; it's a scheme, underneath, with the full power of Racket libs available. [`shrubber
by lygaret 2y ago
This is racket's [rhombus], which might be an interesting second link here; it's a scheme, underneath, with the full power of Racket libs available.
[`shrubbery`], the replacement for s-exprs, is pretty interesting, expanding s-expr simply with grouping, and then a separate infix-pass on top. I've been playing with using it as the basis for a separate language; it's in an interesting place in the AST space, especially given the forethought put into macros.
[rhombus]: https://docs.racket-lang.org/rhombus/index.html https://docs.racket-lang.org/rhombus/index.html
[shrubbery]: https://docs.racket-lang.org/shrubbery/index.html https://docs.racket-lang.org/shrubbery/index.html
- HexDecOctBin 2y agoI really wish they had kept the old C-like Honu syntax rather that the Python-like Shrubbery. If Rhombus is supposed to be an educational language, copy-pasting and trying out new code is going to be a important part of ecosystem, and indentation based syntax is not ideal for that.
- shakna 2y agoC-parsing is still built-in [0], so whilst I don't think the standard library has a C-language, it's either really simple, or there'll be a few on the package manager. [0] https://docs.racket-lang.org/c-utils/parsing.html https://docs.racket-lang.org/c-utils/parsing.html
- spdegabrielle 2y agoA valid point. There is a long history of identifying the problems and risks of copy-pasting, and trying to reduce it. I remember it was a selling point of Java in the early days. For all the efforts it doesn't seem to be going away. (all the boilerplate in Java probably didn't help) I'd love to see a C-like Rhombus. A Chombus.
- obogobo 2y agolol at Chombus
- ForTheKidz 2y agoI guess. Truth be told I've taught hundreds, bordering on thousands of undergraduate intro courses in python, and students mostly figure it out after they configure tabs and spaces.
- sevensor 2y agoI’ve never seen anybody learn much by copy pasting. If you want to learn, you must put fingers to keys.
- xigoi 2y agoC was my first language and braces confused the shit out of me. I found Python’s syntax much more intuitive when I learned it.
- breuleux 2y agoA while back I had made my own alternative to s-exprs that works with Racket. I have no idea if it still works, but I still think it looks nice, and at a glance I feel it's "purer" than shrubbery: http://breuleux.net/blog/liso.html http://breuleux.net/blog/liso.html