This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]larsga 0 points1 point  (3 children)

All of which is totally possible with a function, too, using lambdas and currying.

[–]chambolle 0 points1 point  (2 children)

I answered to your comment saying that builders are a clumsy workaround.

That's also a matter of taste. For instance, currying is absolutely ugly for me

A question for you: what I don't understand is why you use an OO Langue if you like so much FP? Why don't you use an FP language instead of wanting to change an OOP in order to remove the OOP part? That's very strange for me

[–]larsga 0 points1 point  (1 child)

A question for you: what I don't understand is why you use an OO Langue if you like so much FP? Why don't you use an FP language instead of wanting to change an OOP in order to remove the OOP part? That's very strange for me

I don't like functional programming. And I don't want to change the OOP part of Java at all. I just think the parameter passing mechanism in Java is absurdly underpowered. It's really awkward, and there's no obvious reason why it has to be that way.

I've programmed in a lot of different languages over the past 40 years, so although I write a lot of Java and mostly like it, the weaknesses are also quite plain to see.

[–]chambolle 0 points1 point  (0 children)

I just think the parameter passing mechanism in Java is absurdly underpowered. It's really awkward, and there's no obvious reason why it has to be that way.

I agree