Better HN
topnewbestaskshowjobs
Log inSign up

lkjsaofinwdfsdf

1 karma · joined Feb 4, 2022 (4y ago) · 1 submissions

Submissions

comment 4y ago · link · parent

This is no longer a testimony of Ruby's strength, or rather this highlights Ruby's age and stagnation.

D, Go, C#, Rust, Swift, Kotlin, Scala, Haskell, and (more I'm forgetting) already have this without the hack of monkey patching.

If you really find beauty in DSL's you should look into tagless final encoding in Haskell.

From what I recall Ruby still doesn't have first-class ADT's. Meanwhile Java will be getting sealed classes (the OO orthogonal to ADTs) with pattern matching.