5 Answered Questions for the topic language design

Language Design Python Least Astonishment


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
Language Design C++ Computer Programming Theory


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
Language Design Logic Python


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
Language Design Visual Basic Basic


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
Language Design Visual Basic Basic Vb6


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.


Find an Online Tutor Now

Choose an expert and meet online. No packages or subscriptions, pay only for the time you need.