|
|
|
|
|
by sharksandwich
666 days ago
|
|
I admire the consideration Richard and the rest of the Roc community put into the language, but I'm curious whether the absence of macros will unavoidably lead to code like https://github.com/agu-z/roc-pg?tab=readme-ov-file#examples . It's not obvious to me that the benefits of that constraint (teachability, language tooling) outweigh the costs of writing code that probably should be automated. That said, I may just be showing my lisp bias, and tools like Squirrel in Gleam are sufficient https://hexdocs.pm/squirrel/ |
|
You’d be surprised at how nice you can make a DSL in Roc without any metaprogramming!
As for Squirrel, I think it’s a great approach and definitely something I might explore in the future. Right now, I'm leaning towards a DSL for better reusability, though I must admit, that actual SQL is hard to beat!
[1] https://github.com/agu-z/roc-pg/blob/62725fe3a1d92144a8408ae...