Click here to Skip to main content
15,915,702 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: String or string? Pin
CDP180217-Feb-17 9:51
CDP180217-Feb-17 9:51 
GeneralRe: String or string? Pin
harold aptroot17-Feb-17 9:55
harold aptroot17-Feb-17 9:55 
GeneralRe: String or string? Pin
CDP180217-Feb-17 10:05
CDP180217-Feb-17 10:05 
GeneralRe: String or string? Pin
Jon McKee17-Feb-17 10:24
professionalJon McKee17-Feb-17 10:24 
AnswerRe: String or string?: Please kill this thread!! Pin
Cornelius Henning17-Feb-17 9:57
professionalCornelius Henning17-Feb-17 9:57 
AnswerRe: String or string? Pin
dandy7217-Feb-17 10:09
dandy7217-Feb-17 10:09 
AnswerRe: String or string? Pin
Bryian Tan17-Feb-17 10:25
professionalBryian Tan17-Feb-17 10:25 
GeneralRe: String or string? Pin
Jon McKee17-Feb-17 11:19
professionalJon McKee17-Feb-17 11:19 
I believe the reason it suggests to simplify the name is because string, int, etc do not require the System namespace include while String, Int32, etc still do. It can help clean up your namespace includes if that file doesn't use the System namespace for things other than simple types Thumbs Up | :thumbsup: I'm sure there are other reasons to suggest simplification but that's the one that immediately comes to mind.

EDIT: Now that I think about it, in a way the simple names "decouple" the developer from the exact underlying type too. They could transparently change int to map to Int64 in the future, for example.
GeneralRe: String or string? Pin
Gary R. Wheeler17-Feb-17 12:06
Gary R. Wheeler17-Feb-17 12:06 
GeneralRe: String or string? Pin
Jon McKee17-Feb-17 12:29
professionalJon McKee17-Feb-17 12:29 
GeneralRe: String or string? Pin
PIEBALDconsult17-Feb-17 12:33
mvePIEBALDconsult17-Feb-17 12:33 
AnswerRe: String or string? Pin
Sander Rossel17-Feb-17 11:04
professionalSander Rossel17-Feb-17 11:04 
GeneralRe: String or string? Pin
User 1106097917-Feb-17 12:26
User 1106097917-Feb-17 12:26 
GeneralRe: String or string? Pin
Sander Rossel18-Feb-17 1:25
professionalSander Rossel18-Feb-17 1:25 
GeneralRe: String or string? Pin
User 1106097918-Feb-17 4:24
User 1106097918-Feb-17 4:24 
GeneralRe: String or string? Pin
Sander Rossel18-Feb-17 23:24
professionalSander Rossel18-Feb-17 23:24 
JokeRe: String or string? Pin
User 1106097919-Feb-17 2:46
User 1106097919-Feb-17 2:46 
AnswerRe: String or string? Pin
NickPace17-Feb-17 11:19
NickPace17-Feb-17 11:19 
GeneralRe: String or string? Pin
  Forogar  19-Feb-17 3:23
professional  Forogar  19-Feb-17 3:23 
GeneralRe: String or string? Pin
hooodaticus20-Feb-17 4:04
hooodaticus20-Feb-17 4:04 
AnswerRe: String or string? Pin
Gary R. Wheeler17-Feb-17 11:55
Gary R. Wheeler17-Feb-17 11:55 
AnswerRe: String or string? Pin
Eddy Vluggen17-Feb-17 12:48
professionalEddy Vluggen17-Feb-17 12:48 
AnswerRe: String or string? Pin
Mark_Wallace18-Feb-17 3:16
Mark_Wallace18-Feb-17 3:16 
AnswerRe: String or string? Pin
Marc Clifton18-Feb-17 4:23
mvaMarc Clifton18-Feb-17 4:23 
GeneralRe: String or string? Pin
User 1106097918-Feb-17 4:41
User 1106097918-Feb-17 4:41 

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.