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

2

u/kwan_e tonal-lang Jul 24 '26

Commands can call functions, functions can't call commands.

That's elegant.

I was forced to learn Pascal in high school, and I could never really see the point of having separate procedures vs functions. But having a relationship between them enforced, but their capabilities demarcated, makes the distinction much more useful.

I'm not going to steal this idea for my language though. My side-effect reduction system doesn't work on the subroutine level, but I wish I had thought of it.