5 Answered Questions for the topic language design
Least Astonishment and the Mutable Default Argument?
Anyone tinkering with Python long enough has been bitten (or torn to pieces) by the following issue: def foo(a=): a.append(5) return aPython novices would expect this function to... more
Why are C++ inline functions in the header?
<sub>NB This is not a question about how to use inline functions or how they work, more why they are done the way they are.</sub>The declaration of a class member function does not need... more
Why are default arguments evaluated at definition time in Python?
I had a very difficult time with understanding the root cause of a problem in an algorithm. Then, by simplifying the functions step by step I found out that evaluation of default arguments in... more
BASIC, how lines were stored in memory?
As I understand BASIC had line numbers because at the time you had to use a line editor to input your program. It allowed you to do something like this: 20 END 10 PRINT "HELLO WORLD" This... more
What does DIM stand for in Visual Basic and BASIC?
What does DIM stand for in Visual Basic?