Click here to Skip to main content
15,888,286 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: 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 
GeneralC# (and C style?) Pin
Slacker00721-Jul-19 23:47
professionalSlacker00721-Jul-19 23:47 
GeneralRe: C# (and C style?) Pin
honey the codewitch22-Jul-19 2:34
mvahoney the codewitch22-Jul-19 2:34 
GeneralRe: C# (and C style?) Pin
Slacker00722-Jul-19 3:05
professionalSlacker00722-Jul-19 3:05 
GeneralRe: C# (and C style?) Pin
honey the codewitch22-Jul-19 5:46
mvahoney the codewitch22-Jul-19 5:46 
GeneralRe: C# (and C style?) Pin
RandMan755723-Jul-19 2:51
RandMan755723-Jul-19 2:51 
GeneralC# Pin
Akhil Mittal21-Jul-19 23:27
professionalAkhil Mittal21-Jul-19 23:27 
C#
Thanks
Happy Coding Smile | :)

GeneralRe: C# Pin
Slacker00721-Jul-19 23:45
professionalSlacker00721-Jul-19 23:45 
Generalshort, neat unambiguous - C Pin
Eek Ten Bears21-Jul-19 22:34
Eek Ten Bears21-Jul-19 22:34 
GeneralGods be blessed Pin
den2k8821-Jul-19 21:32
professionalden2k8821-Jul-19 21:32 
Generalpublic int Count {get; private set;} Pin
OriginalGriff21-Jul-19 20:22
mveOriginalGriff21-Jul-19 20:22 
GeneralWell c-style wins because c# is #1 PinPopular
Mike (Prof. Chuck)21-Jul-19 19:55
professionalMike (Prof. Chuck)21-Jul-19 19:55 
GeneralRe: Well c-style wins because c# is #1 Pin
OriginalGriff21-Jul-19 20:23
mveOriginalGriff21-Jul-19 20:23 
GeneralRe: Well c-style wins because c# is #1 Pin
  Forogar  22-Jul-19 3:09
professional  Forogar  22-Jul-19 3:09 
GeneralRe: Well c-style wins because c# is #1 Pin
Mike (Prof. Chuck)22-Jul-19 3:14
professionalMike (Prof. Chuck)22-Jul-19 3:14 
GeneralRe: Well c-style wins because c# is #1 Pin
OriginalGriff22-Jul-19 3:27
mveOriginalGriff22-Jul-19 3:27 
GeneralRe: Well c-style wins because c# is #1 Pin
  Forogar  22-Jul-19 3:40
professional  Forogar  22-Jul-19 3:40 

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.