3 ms·
Different languages are different. That's mainly what makes them different. /s And actually, the terms you mention are subtly different as well. In part bec
by stray 11y ago
Different languages are different. That's mainly what makes them different.
/s
And actually, the terms you mention are subtly different as well. In part because of implementation details that will be different from otherwise similar languages.
Push and append for example, seem to be adding elements to the opposite ends of the thing being pushed or appended to. Push goes to the head. Append goes to the tail.
In Lisp for example, you push onto the head of a list while append concatenates the contents of multiple lists returning it all as one list.
Arrays, which are not the same as lists in Lisp, have vector-push which does what Python's append method does.
These things can't be unified because beneath the covers they use very different data structures.
And some things would get lost in translation anyway.
The word "macro" for example. C has macros, but C's macros are to Lisp's macros what a photograph is to a 3D movie. And Lisp's Condition System is unlike the closest thing in any other language I'm aware of.
And returning multiple values. The only languages that I know of that do it are Assembly and Lisp. Other languages may return compound values -- but it's not the same.
I don't know, brother -- you just have to do a little translation in your head. Like whenever those whacky Brits call trucks lorries, and bongs hubbly bubblies (actually, I dig that one).