23 Oct
2021
23 Oct
'21
10:11 p.m.
Why would anyone want to type: def variable = value when they could just type: variable = value instead? Perhaps if I was being paid by the character typed... def my__really__good__variable = ( value ) # Assign value to my__really__good__variable. *wink* But all joking aside, what benefit would this "def" statement have? Why would I want to use it? On Sat, Oct 23, 2021 at 04:37:20PM -0000, blek blek wrote:
I was thinking of a "def" statement in Python. Its really weird that it can define only method, since it means "define".
It means *define function*, not just "define anything". We don't use def to define classes, or modules, or lists, or other objects. -- Steve