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/PressureBeautiful515 Jul 25 '26
Command–query separation
Limiting when designing concurrent data structures, e.g. for a stack you want to be able to pop (side-effect, command) and return the popped value, unless the stack is empty (pure query) and for all this to be in one atomic operation.