r/ProgrammingLanguages • • 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

127 comments sorted by

View all comments

Show parent comment

1

u/Inconstant_Moo 🧿 Pipefish Jul 26 '26

I've looked at Eiffel and the difference is that because Meyer was working in OOP, he's making this distinction between the methods you can define on objects. In Pipefish there are only immutable values, and the distinction is between the commands and the functions of a service/library/app. In fact in Pipefish a service looks very like an object, that's the level at which the encapsulation lives, and the only thing that can own mutable state, and, in this instance, the level at which we separate queries and commands.

Which is often how OOP ends up anyway: we have lots of little PODOs, and then a big singleton with a bunch of mutable state and a public-facing API.