Follow

While there are general standards, every programming language has a slightly different way of doing common things. I really wish someone would make a list of 100 common basic operations (e.g. get the length of a list, modulo operator, inject variables into a format string) and put them on a poster -- one per language.

After my 10th new language, I really don't need the basics of "this is what a function is, this is what loops do" that beginning guides all focus on, but I need to know how your particular language does these common operations.

Lastly, the top result on Google for "Python Modulo operator" should not be a payware intro to Python tutorial, it should be the official API documentation, darn it!

(Today's lucky contestant is still , but the same could be said for or )

While we’re on the subject, there is not reason, in the year of our Lord 2023, that any programming language should not have .

Seriously, if there is a function call whose result is immediately passed back to the previous calling site then when you create you new stack frame (or whatever other magical BS your language does to make a function calls) substitute the calling return site for your own. I’m not asking for intensive code analysis to find hidden tail calls, but with return foo(bar) foo should not have to come back to your stack frame before moving down the stack.

Show thread
Sign in to participate in the conversation
Qoto Mastodon

QOTO: Question Others to Teach Ourselves
An inclusive, Academic Freedom, instance
All cultures welcome.
Hate speech and harassment strictly forbidden.