r/functionalprogramming • • Nov 02 '26

OO and FP I'm so sick of people calling classes OOP and lambdas functional

/r/learnprogramming/comments/1xlvhj8/im_so_sick_of_people_calling_classes_oop_and/
0 Upvotes

11 comments sorted by

•

u/kinow mod Nov 02 '26

Post being heavily downvoted and reported too. In general OOP/FP posts are downvoted, but I don't see it breaking any rules, so keeping the post approved. There's a comment that's a bit on the sarcasm side, also being downvoted, which (sarcasm) normally doesn't always help building an argument and can lead to user reports. As long as the discussion remains on the arguments, ad hominem, no removal/bans/etc.

13

u/pacific_plywood Nov 02 '26

Who cares, categories are leaky. That’s life

-5

u/HyperDanon Nov 02 '26

So I suppose when you order tea and the waiter gives you coffee, you shouldn't care, because they're just categories, right?

2

u/chwrryrolled Nov 02 '26

It reminds me a video of Roc's creator talking about this stuff, i think it's also what they meant by saying that "categories are leaky". Though i agree with your point, we need categories and everyone hates it when it's abused such as the classic marketing buzzwords like "General Purpose" or "Simplicity"

2

u/ChristianGeek Nov 03 '26

Or “Margarita”.

1

u/Merthod 26d ago

It's not the same physical categories to abstract categories.

11

u/TheMov3r Nov 02 '26

You don't need lambdas to do functional, you need logic to be primarily expressed through composing and evaluating functions. Lambda calculus is a great model for this but not the only way

4

u/k410n Nov 02 '26

You can easily implement purely functional classes and objects. It's not usually done, because OOP currently is used (only? Not sure) in imperative languages but that doesn't need to mean anything

4

u/jhartikainen Nov 02 '26

Tbf this seems like just a rant and sounds like "I dislike it when people use terminology in a vague manner" and nothing else.

.map(lambda) is functional - it is a pattern more commonly associated with languages that have functional-style features. What is it supposed to be called if not functional style? I suppose you could call it an iterator function or something, but it's equally vague and doesn't communicate anything more useful.

The point of calling something "functional" or "OO" in general programming discussions is usually to just communicate the idea that something is similar to those ideas, not that it's strictly one way or another.

5

u/gallais Nov 02 '26

OP refuses to touch grass because that'd involve I/O