Click here to Skip to main content
15,892,005 members

Survey Results

Random style question: Which variable declaration do you prefer?

Survey period: 22 Jul 2019 to 29 Jul 2019

Strict formalism or fast and loose? Typesafe or no type at all? For anyone who switches languages often this can get messy.

OptionVotes% 
int count (Standard C-style)76666.78
count: Integer (eg Pascal)342.96
var count: int, or val count: Integer (eg TypeScript)201.74
var count int (eg Go)191.66
Declare @count int (eg SQL)161.39
Dim Count As Integer (eg VB)786.80
Count = 1 or $count = 1 (eg Python or PHP)282.44
(defvar count 1) (eg LISP, and similar in Scheme)20.17
Other272.35
I'm not fussed. Whatever works.15713.69



 
GeneralRe: Another Missing Option Pin
Slow Eddie23-Jul-19 5:59
professionalSlow Eddie23-Jul-19 5:59 
GeneralRe: Another Missing Option Pin
raddevus24-Jul-19 7:58
mvaraddevus24-Jul-19 7:58 
GeneralI'm not fussed Pin
MarkTJohnson23-Jul-19 2:52
professionalMarkTJohnson23-Jul-19 2:52 
GeneralRe: I'm not fussed Pin
raddevus24-Jul-19 7:52
mvaraddevus24-Jul-19 7:52 
GeneralMissing option Pin
Gary Wheeler23-Jul-19 1:34
Gary Wheeler23-Jul-19 1:34 
GeneralLife is no longer so simple Pin
Marc Clifton22-Jul-19 7:53
mvaMarc Clifton22-Jul-19 7:53 
GeneralRe: Life is no longer so simple Pin
Slacker00722-Jul-19 10:25
professionalSlacker00722-Jul-19 10:25 
GeneralYou missed C# inferred style. Pin
nmarcel22-Jul-19 3:10
nmarcel22-Jul-19 3:10 
GeneralRe: You missed C# inferred style. PinPopular
PeejayAdams22-Jul-19 4:42
PeejayAdams22-Jul-19 4:42 
GeneralRe: You missed C# inferred style. Pin
Scott Serl22-Jul-19 9:21
Scott Serl22-Jul-19 9:21 
GeneralRe: You missed C# inferred style. Pin
OriginalGriff22-Jul-19 9:29
mveOriginalGriff22-Jul-19 9:29 
GeneralRe: You missed C# inferred style. Pin
Slacker00722-Jul-19 10:24
professionalSlacker00722-Jul-19 10:24 
GeneralRe: You missed C# inferred style. (C# is essenially C++ as far as BNF concerned) Pin
steveb27-Jul-19 3:41
mvesteveb27-Jul-19 3:41 
GeneralRexx Pin
  Forogar  22-Jul-19 3:08
professional  Forogar  22-Jul-19 3:08 
GeneralTypesafe with default value assignment Pin
littleGreenDude22-Jul-19 2:46
littleGreenDude22-Jul-19 2:46 
GeneralRe: Typesafe with default value assignment Pin
#realJSOP22-Jul-19 9:22
mve#realJSOP22-Jul-19 9:22 
GeneralC# var - nice compromise Pin
honey the codewitch22-Jul-19 2:30
mvahoney the codewitch22-Jul-19 2:30 
GeneralVar Wars Pin
PeejayAdams22-Jul-19 1:20
PeejayAdams22-Jul-19 1:20 
GeneralRe: Var Wars Pin
KarstenK22-Jul-19 1:46
mveKarstenK22-Jul-19 1:46 
GeneralRe: Var Wars Pin
Slacker00722-Jul-19 1:50
professionalSlacker00722-Jul-19 1:50 
GeneralRe: Var Wars Pin
OriginalGriff22-Jul-19 3:02
mveOriginalGriff22-Jul-19 3:02 
GeneralRe: Var Wars Pin
Matt McGuire24-Jul-19 5:05
professionalMatt McGuire24-Jul-19 5:05 
GeneralRe: Var Wars Pin
  Forogar  22-Jul-19 3:11
professional  Forogar  22-Jul-19 3:11 
GeneralRe: Var Wars Pin
PeejayAdams22-Jul-19 4:17
PeejayAdams22-Jul-19 4:17 
GeneralRe: Var Wars Pin
obermd23-Jul-19 3:22
obermd23-Jul-19 3:22 

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.