Click here to Skip to main content
15,879,474 members

Welcome to the Lounge

   

For discussing anything related to a software developer's life but is not for programming questions. Got a programming question?

The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.

 
GeneralRe: Cosmetic vs More Efficient Pin
Andre_Prellwitz5-May-21 10:55
Andre_Prellwitz5-May-21 10:55 
GeneralRe: Cosmetic vs More Efficient Pin
MarkTJohnson4-May-21 7:21
professionalMarkTJohnson4-May-21 7:21 
GeneralRe: Cosmetic vs More Efficient Pin
Daniel Pfeffer4-May-21 7:34
professionalDaniel Pfeffer4-May-21 7:34 
GeneralRe: Cosmetic vs More Efficient Pin
MarkTJohnson4-May-21 7:40
professionalMarkTJohnson4-May-21 7:40 
GeneralRe: Cosmetic vs More Efficient Pin
Mircea Neacsu4-May-21 9:32
Mircea Neacsu4-May-21 9:32 
GeneralRe: Cosmetic vs More Efficient Pin
W Balboos, GHB5-May-21 0:58
W Balboos, GHB5-May-21 0:58 
GeneralRe: Cosmetic vs More Efficient Pin
Mircea Neacsu5-May-21 2:47
Mircea Neacsu5-May-21 2:47 
GeneralRe: Cosmetic vs More Efficient Pin
W Balboos, GHB5-May-21 2:58
W Balboos, GHB5-May-21 2:58 
I addressed this somewhere else but, as an example, a variable arg list is possible (and often very desirable) in, for example, php (very much C-like except for no strong typing).

It allows one to create a function with a default value and still not be stuck with just that value. An ease of use thing. The example I gave in what is really a style-preference question, can be called either as whatEver(inVal) or whatEver() with the latter not giving a 'missing argument' error but rather defaulting to what was in the declaration.

An example of use: initializing a random function: with a value it uses that; without a value it can internally pick the current time of day. It's related somewhat to C++ overloading functions.
Ravings en masse^
"The difference between genius and stupidity is that genius has its limits." - Albert Einstein
"If you are searching for perfection in others, then you seek disappointment. If you seek perfection in yourself, then you will find failure." - Balboos HaGadol Mar 2010

GeneralRe: Cosmetic vs More Efficient Pin
Kirk 103898215-May-21 3:15
Kirk 103898215-May-21 3:15 
GeneralRe: Cosmetic vs More Efficient Pin
agolddog5-May-21 3:19
agolddog5-May-21 3:19 
GeneralRe: Cosmetic vs More Efficient Pin
BernardIE53174-May-21 10:07
BernardIE53174-May-21 10:07 
GeneralRe: Cosmetic vs More Efficient Pin
11917640 Member 4-May-21 19:10
11917640 Member 4-May-21 19:10 
GeneralRe: Cosmetic vs More Efficient Pin
BernardIE53174-May-21 20:54
BernardIE53174-May-21 20:54 
GeneralRe: Cosmetic vs More Efficient Pin
11917640 Member 4-May-21 22:08
11917640 Member 4-May-21 22:08 
GeneralRe: Cosmetic vs More Efficient Pin
BernardIE53174-May-21 22:46
BernardIE53174-May-21 22:46 
GeneralRe: Cosmetic vs More Efficient Pin
W Balboos, GHB5-May-21 1:20
W Balboos, GHB5-May-21 1:20 
GeneralRe: Cosmetic vs More Efficient Pin
Greg Utas4-May-21 10:01
professionalGreg Utas4-May-21 10:01 
GeneralRe: Cosmetic vs More Efficient Pin
W Balboos, GHB5-May-21 1:09
W Balboos, GHB5-May-21 1:09 
GeneralRe: Cosmetic vs More Efficient Pin
Greg Utas5-May-21 1:17
professionalGreg Utas5-May-21 1:17 
GeneralRe: Cosmetic vs More Efficient Pin
PIEBALDconsult4-May-21 11:04
mvePIEBALDconsult4-May-21 11:04 
GeneralRe: Cosmetic vs More Efficient Pin
obermd4-May-21 18:48
obermd4-May-21 18:48 
GeneralRe: Cosmetic vs More Efficient Pin
Peter Adam4-May-21 22:07
professionalPeter Adam4-May-21 22:07 
GeneralRe: Cosmetic vs More Efficient Pin
BernardIE53174-May-21 23:09
BernardIE53174-May-21 23:09 
GeneralRe: Cosmetic vs More Efficient Pin
jsc424-May-21 23:31
professionaljsc424-May-21 23:31 
GeneralRe: Cosmetic vs More Efficient Pin
Gary Wheeler5-May-21 1:58
Gary Wheeler5-May-21 1:58 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.