Hacker News new | ask | show | jobs
by unsubstantiated 1030 days ago
Perhaps unknown to the HN community is that C# periodically gets Delphi features reintroduced in it in one way or another.

More recently, C# 9 and 10 have returned the concept of `records` (preferably immutable objects) along with the `with` keyword for making copies with some of the properties changed from the source to the dest object.

It has been an interesting decade watching HN metaphorically (and sometimes literally i'm sure) shift around uncomfortable in their chair as the all-encompassing-nightmare M$FT creates two languages that are more and more dominating of developer marketshare - C# and TypeScript.

3 comments

Well, Anders Hejlsberg, the creator of C#, is also the creator of Delphi.
I heard he also worked a lot on .NET, maybe a key role. Google.
And of TypeScript
C# and TypeScript have both been pretty open (in nature and source) for roughly a decade. Which I appreciate. Although, I'm somewhat apprehensive about some of MS's moves with the .Net community, and their holding back on quality of life improvements for C# projects in VS Code.

Although, MS hasn't caused me to generally avoid .Net so much as the more "enterprise" nature of most of the projects I've had experience with. I started with .Net (C#) in 2001, and to this day think there is a lot to like there. Of course these days, I'd appreciate the opportunity to work with Rust more than C#.

When he adds metaclasses and Virtual Class Functions to C#, I'll say his migration of Delphi features is finally complete.
Only if we get the same flexibility in native code and COM interop, for the complete feature set.