r/ProgrammingLanguages • u/jimbobmcgoo • Jul 23 '26
Will we see another fundamental programming language feature as revolutionary as the borrow checker?
That is I am mainly curious about compile time features that you design a whole language around rather than optimisations/features that could be applied to most languages. I am mainly inquiring about things that could offer additional robust safety/performance guarantees at compile time rather than runtime. Ideally not things that just offer similar effects to the borrow checker with less restrictive tradeoffs
61
Upvotes
View all comments
Show parent comment
1
u/thedeemon Jul 29 '26
In the one I'm making all modules are parameterized by default (i.e. if your module M imports other module like IO, when I import M I can provide some other implementation of IO to your M, and I can have different versions of M with different substitutions of modules it imports).
Swift has both algebraic types, OO classes and type classes (which it calls protocols).