r/ProgrammingLanguages • 🧿 Pipefish • Apr 28 '26

Hindsight languages

A thought experiment. What languages should they have been writing in the 60s, 70s, 80s, 90s? We can see their faults, in hindsight, and also we've had some really cool ideas since then --- but we can't answer this just by pointing to our shiny new modern languages and saying "they should have done it like that", because of compile times.

(E.g. Pipefish is meant to be for rapid iteration and livecoding, and also does a topological sort on everything at compile-time so you can do top-down declaration. Those wouldn't be compatible goals in the 1980s, I can get away with it now.)

So for example if we think of "a better C", are there any cool modern ideas they could and should have used back in 1972, had they known about them --- or should they just have tweaked the precedence slightly, found a less arcane way of describing types, and left it at that?

41 Upvotes

72 comments sorted by

View all comments

Show parent comment

1

u/Inconstant_Moo 🧿 Pipefish Apr 29 '26

But your example of sorting and a double pass compiler being too slow for the past doesn't impress me. Compilers with multiple passes were the norm before C and Pascal.

Remember that in that example I'm contrasting Pipefish with other lightweight rapid-iteration languages. It's always been my assumption that e.g. Python doesn't have free order of declaration, not because the author was dumb and didn't know how, but because the author was smart and correctly decided it wasn't a price worth paying --- back in the 80s.