Click here to Skip to main content
15,670,482 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: What is your language feature wish list? Pin
PIEBALDconsult1-Feb-23 8:30
professionalPIEBALDconsult1-Feb-23 8:30 
GeneralRe: What is your language feature wish list? Pin
Jeremy Falcon1-Feb-23 8:35
professionalJeremy Falcon1-Feb-23 8:35 
JokeRe: What is your language feature wish list? Pin
Daniel Pfeffer1-Feb-23 19:26
professionalDaniel Pfeffer1-Feb-23 19:26 
GeneralRe: What is your language feature wish list? Pin
Gary Wheeler2-Feb-23 2:12
Gary Wheeler2-Feb-23 2:12 
GeneralRe: What is your language feature wish list? Pin
Member 156729112-Feb-23 1:17
Member 156729112-Feb-23 1:17 
GeneralRe: What is your language feature wish list? Pin
PIEBALDconsult2-Feb-23 2:29
professionalPIEBALDconsult2-Feb-23 2:29 
GeneralRe: What is your language feature wish list? Pin
Single Step Debugger2-Feb-23 2:51
Single Step Debugger2-Feb-23 2:51 
GeneralRe: What is your language feature wish list? Pin
trønderen2-Feb-23 2:55
trønderen2-Feb-23 2:55 
Well, yes, but ... In all the Pascals I have been in touch with, it is implemented as a bit map. A few orders of magnitude lighter, I guess.

There are several other Pascal features I certainly would welcome in C#. Such as decent enumerations, as a first class data type - not just symbolic names for integers, that cannot even be used as integers! In particular: The enum we are offered cannot even be used as an array index type.

Closely related: I would welcome Pascal style subrange types. Define a type Year = 1900..2050, and assigning a value outside this range to a variable of type Year is caught by the runtime system (or the compiler, if it can be determined statically).

Related to this: An array with index type Year, so valid index values run from 1900 to 2050.

To go a little beyond Pascal: I wish we had a mechanism for defining incompatible types: If I could define 'new type Speed = float;' and 'new type Volume = float;', variables of type Speed and Volume would be incompatible, and the compiler would give an error if you try to add them (without a proper operator definition for the two types, or an explicit cast).
GeneralRe: What is your language feature wish list? Pin
PIEBALDconsult2-Feb-23 3:37
professionalPIEBALDconsult2-Feb-23 3:37 
GeneralRe: What is your language feature wish list? Pin
trønderen2-Feb-23 4:16
trønderen2-Feb-23 4:16 
GeneralRe: What is your language feature wish list? Pin
englebart2-Feb-23 14:29
professionalenglebart2-Feb-23 14:29 
GeneralRe: What is your language feature wish list? Pin
englebart2-Feb-23 14:23
professionalenglebart2-Feb-23 14:23 
AnswerRe: What is your language feature wish list? Pin
Jeremy Falcon1-Feb-23 5:32
professionalJeremy Falcon1-Feb-23 5:32 
AnswerRe: What is your language feature wish list? Pin
PIEBALDconsult1-Feb-23 9:34
professionalPIEBALDconsult1-Feb-23 9:34 
GeneralRe: What is your language feature wish list? Pin
Daniel Pfeffer1-Feb-23 19:34
professionalDaniel Pfeffer1-Feb-23 19:34 
AnswerRe: What is your language feature wish list? Pin
Roger Wright1-Feb-23 21:13
professionalRoger Wright1-Feb-23 21:13 
AnswerRe: What is your language feature wish list? Pin
Niels Holst1-Feb-23 21:15
professionalNiels Holst1-Feb-23 21:15 
GeneralRe: What is your language feature wish list? Pin
trønderen2-Feb-23 2:34
trønderen2-Feb-23 2:34 
GeneralRe: What is your language feature wish list? Pin
Niels Holst2-Feb-23 3:26
professionalNiels Holst2-Feb-23 3:26 
GeneralRe: What is your language feature wish list? Pin
trønderen2-Feb-23 4:18
trønderen2-Feb-23 4:18 
GeneralRe: What is your language feature wish list? Pin
Niels Holst2-Feb-23 4:22
professionalNiels Holst2-Feb-23 4:22 
AnswerRe: What is your language feature wish list? Pin
Cpichols2-Feb-23 1:33
Cpichols2-Feb-23 1:33 
GeneralRe: What is your language feature wish list? Pin
Jeremy Falcon2-Feb-23 6:44
professionalJeremy Falcon2-Feb-23 6:44 
AnswerRe: What is your language feature wish list? Pin
trønderen2-Feb-23 4:06
trønderen2-Feb-23 4:06 
AnswerRe: What is your language feature wish list? Pin
BernardIE53172-Feb-23 6:32
BernardIE53172-Feb-23 6:32 

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.