I spent the morning putting in a comma and the afternoon removing it.
-- Gustave Flaubert, French realist novelist (1821-1880)
Another interesting question for BW. This book really has raised some challenging discussions Doesn't that make the effort of posting worthwhile!Sean Corfield wrote:. . . How do you balance that immutability with Java's mutable by default nature. . . .
Campbell Ritchie wrote:
I presume you are familiar with the techniques for creating immutable datatypes, and know that the process became much easier in Java16 (I think) when records were introduced.
I spent the morning putting in a comma and the afternoon removing it.
-- Gustave Flaubert, French realist novelist (1821-1880)
Sean Corfield wrote:How important do you feel immutability is in functional style code?
How do you balance that immutability with Java's mutable by default nature.
What advice do you have for trying to work extensively with immutability in Java?
Interested in using functional concepts and techniques in your Java code?
Check out my new book "A Functional Approach to Java"!
Interested in using functional concepts and techniques in your Java code?
Check out my new book "A Functional Approach to Java"!
Ben Weidig wrote:Without knowing the syntax, non-Clojure devs will immediately be lost
I spent the morning putting in a comma and the afternoon removing it.
-- Gustave Flaubert, French realist novelist (1821-1880)
Interested in using functional concepts and techniques in your Java code?
Check out my new book "A Functional Approach to Java"!
Sean Corfield wrote:
Ben Weidig wrote:Without knowing the syntax, non-Clojure devs will immediately be lost
I hear this a lot but I must confess I don't really understand why. After all f(1, 2, 3) just becomes (f 1 2 3) and obj.method("a", "b", "c") just becomes (method obj "a" "b" "c") so it's not really that different
Junilu Lacar wrote:Another analogy is an English-speaking person trying to learn French or Spanish
I spent the morning putting in a comma and the afternoon removing it.
-- Gustave Flaubert, French realist novelist (1821-1880)
Interested in using functional concepts and techniques in your Java code?
Check out my new book "A Functional Approach to Java"!
Ben Weidig wrote:
I learned French for 5 years in school, and I hated it!
Learning a new programming language, though, is always fun for me.
Ben Weidig wrote:I learned French for 5 years in school, and I hated it!
Interested in using functional concepts and techniques in your Java code?
Check out my new book "A Functional Approach to Java"!
Did you see how Paul cut 87% off of his electric heat bill with 82 watts of micro heaters? |