|
|
|
|
|
by pshirshov
339 days ago
|
|
> The upshot is that traits are a compile-time construct that is fully eliminated through monomorphization. So, apparently, I can't re-implement distage for Flix. I don't mind a little bit of overhead in exchange for a massive productivity boost. I don't even need full nominal inheritance, just literally one level of interface inheritance with dynamic dispatching :( > their real (or perceived) (ab)use in other programming languages. Without macros I can't re-implement things like logstage (effortless structured logging extracting context from AST) and izumi-reflect (compile-time refleciton with tiny runtime scala typer simulator). |
|
Another way of putting it is to point out that removing goto from a language isn't going to reduce the occurrence of spaghetti code. The average skill and care of the developers who happen to be using that language is what does that.