3 ms·
Of course. Every single mainstream programming language looks and works like ALGOL, without exception. They all use structured programming (while, for and if in
by TazeTSchnitzel 11y ago
Of course. Every single mainstream programming language looks and works like ALGOL, without exception. They all use structured programming (while, for and if instead of goto), are imperative (assign here, branch here, do some side effect) and are all procedural (programs consist of functions with side effects). They all have similar syntax with = or := for assignment, infix mathematical operations and block syntax. There are some minor differences (e.g. execution), and some of them have an OOP layer on top of this, but that's it mostly.
Now, are all programming languages the same? Most definitely not. Lisps exist, functional languages exist, heck, BASIC exists, to name some other language families. But all mainstream languages are virtually the same.
- tempodox 11y agoNope, even the mainstream languages aren't the same. If their differences didn't amount to more than lipstick-on-a-pig there would only be one mainstream language. (JS is on the way there, so if we wait long enough we might still witness this mythical event)
- TazeTSchnitzel 11y ago> Nope, even the mainstream languages aren't the same. If their differences didn't amount to more than lipstick-on-a-pig there would only be one mainstream language. How so? There's a lot of choice, but quite little diversity. There are more languages than there are big differences between them. You could combine Python, PHP, JavaScript, Lua, and Ruby, then C++ and C, then C# and Java. There'd only be 3 mainstream programming languages left, but you'd have lost almost no diversity. Even with the differences between them, an algorithm implemented in any of them will look nearly identical.