Click here to Skip to main content
15,893,622 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: 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.