Click here to Skip to main content
15,881,092 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: If I find another programming language easier should I stay with it instead? Pin
Richard MacCutchan13-Dec-20 4:05
mveRichard MacCutchan13-Dec-20 4:05 
GeneralRe: If I find another programming language easier should I stay with it instead? Pin
User 1106097913-Dec-20 7:57
User 1106097913-Dec-20 7:57 
GeneralRe: If I find another programming language easier should I stay with it instead? Pin
Richard MacCutchan13-Dec-20 8:20
mveRichard MacCutchan13-Dec-20 8:20 
GeneralRe: If I find another programming language easier should I stay with it instead? Pin
User 1106097913-Dec-20 9:17
User 1106097913-Dec-20 9:17 
GeneralRe: If I find another programming language easier should I stay with it instead? Pin
Richard MacCutchan13-Dec-20 9:48
mveRichard MacCutchan13-Dec-20 9:48 
GeneralRe: If I find another programming language easier should I stay with it instead? Pin
Espen Harlinn13-Dec-20 14:28
professionalEspen Harlinn13-Dec-20 14:28 
GeneralRe: If I find another programming language easier should I stay with it instead? Pin
Richard MacCutchan13-Dec-20 21:49
mveRichard MacCutchan13-Dec-20 21:49 
AnswerRe: If I find another programming language easier should I stay with it instead? Pin
Espen Harlinn14-Dec-20 13:09
professionalEspen Harlinn14-Dec-20 13:09 
Quote:
but there is not much else that it could do

It's a real time saver - I bet I'll save at least 0.00000001% on my next .Net project Wink | ;-)

As for what else is new in C# 9.0 record types seems like a useful extension, with the same pitfalls as structs. Meaning it easy to loose many of the performance benefits through mindless boxing/unboxing.

Init only setters: seems to be useful for functional programming purists - Upside: objects are immutable so you can avoid explicit locking in a multithreaded program, downside: there is going to be a lot of lock contention related to the allocation of objects. So far I believe the downside is, on the average, far greater than the upside.

Pattern matching enhancements: Minor syntactic sugar … which has the potential to make some code more readable, but to me this:
C#
if (e is not null)
{
    // ...
}
is not more readable than:
C#
if (e != null)
{
    // ...
}
Native sized integers and delegate pointers: sounds interesting, but I have no idea about how much this will improve the performance of a program. Sounds mostly like stuff the JIT compiler would do for me anyway …

New Expressions: This is something I'm actually going to use.
Support for code generators: I have yet to use partial methods for anything, but have used class factories and virtual functions to achieve similar functionality in the past. This would certainly reduce the amount of generated code.
Espen Harlinn
Senior Architect - Ulriken Consulting AS

The competent programmer is fully aware of the strictly limited size of his own skull; therefore he approaches the programming task in full humility, and among other things he avoids clever tricks like the plague.Edsger W.Dijkstra

GeneralRe: If I find another programming language easier should I stay with it instead? Pin
Rusty Bullet14-Dec-20 3:20
Rusty Bullet14-Dec-20 3:20 
GeneralRe: If I find another programming language easier should I stay with it instead? Pin
Richard MacCutchan13-Dec-20 3:21
mveRichard MacCutchan13-Dec-20 3:21 
GeneralRe: If I find another programming language easier should I stay with it instead? Pin
User 1493685313-Dec-20 3:47
User 1493685313-Dec-20 3:47 
GeneralRe: If I find another programming language easier should I stay with it instead? Pin
Richard MacCutchan13-Dec-20 4:03
mveRichard MacCutchan13-Dec-20 4:03 
GeneralRe: If I find another programming language easier should I stay with it instead? Pin
User 1493685313-Dec-20 4:06
User 1493685313-Dec-20 4:06 
GeneralRe: If I find another programming language easier should I stay with it instead? Pin
Richard MacCutchan13-Dec-20 4:08
mveRichard MacCutchan13-Dec-20 4:08 
GeneralRe: If I find another programming language easier should I stay with it instead? Pin
Nelek13-Dec-20 9:10
protectorNelek13-Dec-20 9:10 
GeneralRe: If I find another programming language easier should I stay with it instead? Pin
Richard MacCutchan13-Dec-20 9:46
mveRichard MacCutchan13-Dec-20 9:46 
GeneralRe: If I find another programming language easier should I stay with it instead? Pin
Nelek14-Dec-20 3:26
protectorNelek14-Dec-20 3:26 
GeneralRe: If I find another programming language easier should I stay with it instead? Pin
User 1493685313-Dec-20 4:11
User 1493685313-Dec-20 4:11 
GeneralRe: If I find another programming language easier should I stay with it instead? Pin
BillWoodruff13-Dec-20 4:27
professionalBillWoodruff13-Dec-20 4:27 
GeneralRe: If I find another programming language easier should I stay with it instead? Pin
User 1493685313-Dec-20 6:58
User 1493685313-Dec-20 6:58 
GeneralRe: If I find another programming language easier should I stay with it instead? Pin
BillWoodruff13-Dec-20 7:25
professionalBillWoodruff13-Dec-20 7:25 
GeneralRe: If I find another programming language easier should I stay with it instead? Pin
User 1493685313-Dec-20 7:45
User 1493685313-Dec-20 7:45 
GeneralRe: If I find another programming language easier should I stay with it instead? Pin
RickZeeland13-Dec-20 3:22
mveRickZeeland13-Dec-20 3:22 
GeneralRe: If I find another programming language easier should I stay with it instead? Pin
User 1493685313-Dec-20 3:36
User 1493685313-Dec-20 3:36 
GeneralRe: If I find another programming language easier should I stay with it instead? Pin
PIEBALDconsult13-Dec-20 3:45
mvePIEBALDconsult13-Dec-20 3:45 

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.