hot take: typeclasses are the third best feature of Rust
-
-
Like, SML’s module system looks nice on paper, but I’ve worked with it in anger (at UChicago) and hated it.
-
I understand what they’re trying to do, but the usability is pretty bad. More work is needed.
- 9 more replies
New conversation -
-
-
(...what's a singleton module, and what do you mean by "passing a trait" to it?)
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
ML module functors are an almost perfect fit for DI: you can inject not only values but also types and other modules, and wire up your actual modules at a different location (hell, even dynamically in OCaml).
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.