Click here to Skip to main content
15,913,115 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



 
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 Pin
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 
Quote:
It's not so, that we
The only mistake is that this comma is not needed. Otherwise, very good. Wink | ;)
- I would love to change the world, but they won’t give me the source code.

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.