Earlier quoted context omitted.
C++ had operator overloading in the 90s. Mostly we decided it was a bad idea. Every generation must learn this for themselves though.
>"Mostly we decided it was a bad idea." We who? From where I stand people are fine with operator overloading where it makes sense and C++ is far from being the only language with this feature. Problem comes when shitty programmers get orgasmic about some language feature and try to use it everywhere to everyone's detriment.
New in C# 10: Easier Lambda Expressions
41–50 of 111 posts
Re: New in C# 10: Easier Lambda Expressions
#42Earlier quoted context omitted.
What is better in the JVM?
The ecosystem.
Re: New in C# 10: Easier Lambda Expressions
#43F# is really, really bleeding into C#. There'll be a convergence, for all intents and purposes, by about C# 15 at this rate.
Re: New in C# 10: Easier Lambda Expressions
#44Re: New in C# 10: Easier Lambda Expressions
#45Earlier quoted context omitted.
>"Mostly we decided it was a bad idea." We who? From where I stand people are fine with operator overloading where it makes sense and C++ is far from being the only language with this feature. Problem comes when shitty programmers get orgasmic about some language feature and try to use it everywhere to everyone's detriment.
You have to have real good taste to use operator overloading. Often it just leads to obfuscated code where the operators have weird behavior. Extension methods are also way overused. I have had numerous occasions where I thought the .NET framework was buggy only find out that it was somebody’s badly written extension method causing problems.
Gross exaggeration. Just a bit of plain common sense. Do override operators to perform matrix ops. Do not override + operator to do multiplication instead. And do not subtract apples from cars.
As for your further example as I said give shitty programmer code in any language and they will manage to fuck it up.
Re: New in C# 10: Easier Lambda Expressions
#46F# is really, really bleeding into C#. There'll be a convergence, for all intents and purposes, by about C# 15 at this rate.
Is F# still moving forward? I am tempted to try it but I don’t want to bet on another tool MS may abandon soon like they did with the .NET frameworks.
Re: New in C# 10: Easier Lambda Expressions
#47A couple decades ago everyone was on static types. But then people got sick of the boilerplate, and in what I think was a backlash, dynamic languages like JavaScript, Python, Ruby, etc. took the world by storm. With the raised bar of developer expectations when it comes to agility, static type systems were forced to innovate, and now type-inference and related features are coming to all static languages and bringing…
Re: New in C# 10: Easier Lambda Expressions
#48F# is really, really bleeding into C#. There'll be a convergence, for all intents and purposes, by about C# 15 at this rate.
Is F# still moving forward? I am tempted to try it but I don’t want to bet on another tool MS may abandon soon like they did with the .NET frameworks.
https://devblogs.microsoft.com/dotnet/whats-new-in-fsharp-6/
Re: New in C# 10: Easier Lambda Expressions
#49Re: New in C# 10: Easier Lambda Expressions
#50Earlier quoted context omitted.
Yeah, lambdas and reflection really.
Personally I think reflection is the devil and the reason why we can’t abandon VMs for native compilers.