5 Answered Questions for the topic language design
06/03/19
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
05/28/19
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
05/03/19
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
05/03/19
What does DIM stand for in Visual Basic and BASIC?
What does DIM stand for in Visual Basic?
Still looking for help? Get the right answer, fast.
Ask a question for free
Get a free answer to a quick problem.
Most questions answered within 4 hours.
OR
Find an Online Tutor Now
Choose an expert and meet online. No packages or subscriptions, pay only for the time you need.