But honestly there's nothing even to argue, cause the comment doesn't really say anything.
But honestly there's nothing even to argue, cause the comment doesn't really say anything.
C# feels clunky in both. F# is good in FP, has good interop with OOP, but why would you?
It definitely seems easier (or is more popular) to start people on imperative programming styles, because it is easier to make analogies. From there it's a quick jump to OOP.
Did you mean to say that lambda expressions can't contain statements? But no Python expressions can! But functional programming is all done with expressions anyway, to the point where functional languages don't even have statements, so what's the problem?
>>> (lambda a, b=2:
... print(a, a, b, b, c:=3, c, *[[d,d] for d in [4]][0])
... )(1)
1 1 2 2 3 3 4 4
That's four different ways to get locals with no statements.There are simply _way_ more 'imperative' programmers/teachersTtutorials/books/... than 'functional' ones.
When teaching/instructing others, this impression only deepened.
It took a long while to even understand why functional programming has any appeal. I know that some university courses start out with scheme or lisp as a first language. But I suspect they get away with it because they have a captive audience and one that is already selected for high math tolerance.