More functional C#
31–40 of 98 posts
Re: More functional C#
#32This is a joke, right?
This is hobbyist code. It should never actually be used out in the real world. Once you make the distinction, you can better appreciate code snippets like these.
Re: More functional C#
#33Earlier quoted context omitted.
Well, I use it =) C# is a language with a somewhat limited market ("Enterprise" applications running on Windows Servers, and yes, I know about Mono). And in this market, a very strict subset of C# (see: Java) is happily used. I know a lot of people who refrain from using even lambdas and implicit typing, let alone the other "fringe functional stuff", because "they make things complicated".
C# is a language with a somewhat limited market ("Enterprise" applications running on Windows Servers, and yes, I know about Mono) One would think that Windows Phone - fastest growing smartphone OS - would go before Mono... geez, I make a living out of desktop C# apps (WPF). Not solely, but on a daily basis.
Mono is significantly more important for the future of C# than Windows Phone.
Re: More functional C#
#34I have read a lot of lang. wars and complaints about programming languages... but C# is one of the only languages that I can't remember reading any complaints about. None. I must conclude, by the usual Stroustrup quote, that no one uses C#. (yes this is tongue in cheek)
You're not hanging around in the right circles then, I hear complaints about C# all the time ;). While there's plenty of limitations and frustrations you can run into with C#, I've generally felt they were largely due to intentional tradeoffs I can understand, and fail to know a better alternative to. This makes me significantly less ranty about it, in contrast to my other daily bread and butter of C++. Even if I fel…
Absent any other evidence, one should assume the amount of complaining a language would get is about proportional to how widely it's used. So the lack of complaining (asserted by the parent) about C# might be as much a reflection on how widely it's used, than on the language itself.
Re: More functional C#
#35C#'s functional side is why I actually really enjoy working with it. I get to use a nice blend of OO and functional, where each makes sense. OO more on a macro scale, organising code.
Re: More functional C#
#36This is a joke, right?
This is hobbyist code. It should never actually be used out in the real world. Once you make the distinction, you can better appreciate code snippets like these.
Re: More functional C#
#37I have read a lot of lang. wars and complaints about programming languages... but C# is one of the only languages that I can't remember reading any complaints about. None. I must conclude, by the usual Stroustrup quote, that no one uses C#. (yes this is tongue in cheek)
I've been using C# for about 3 years now. A year or two into using it I thought I was developing fanboy syndrome so I started a list of all of the dumb quirks and pitfalls the language has. Last time I checked, there were only 3 or 4 items on the list compared my python/c++/java lists which have 1-2 orders of magnitude more quirks.
C# really is a solid language, it's just a terrible shame it had to have the Microsoft label attached to it.
Re: More functional C#
#38But why do things "near functional" when you have F# which is fully functional?
I like F# though. But I think it takes some getting used to, and I'm not quite there yet. :)
Re: More functional C#
#39But why do things "near functional" when you have F# which is fully functional?
F# syntax is still a little confusing in the beginning, mostly because it does so much with so little syntax. And every time I'm using F# I seem to run into weird problems around indentation. I like F# though. But I think it takes some getting used to, and I'm not quite there yet. :)