Remix.run Logo
danlitt 5 hours ago

> He’s described Ruby’s design as starting from a simple Lisp, stripping out macros and s-expressions

Put the macros back! It would be so cool!

KerrAvon 5 hours ago | parent [-]

You kind of don't need them in Ruby, because everything is a method or an object or a closure and you can dynamically create and alter those at runtime. That's why Ruby is really good for ad-hoc DSLs in ways that Rust and Swift really are not.

bashkiddie an hour ago | parent | next [-]

> because everything is a method or an object or a closure

well, except for pattern matching. That is just syntax.

yxhuvud 2 hours ago | parent | prev [-]

Crystal don't have the dynamicity but has macros to get the next best thing. Most meta magic in Ruby in good code are done at startup anyhow so you don't miss out on that much. YMMV.