Comment on Tell Don't Ask (1997)Comments−mgummelt6yThe author is incorrectly using the term "declarative" when he's really describing "imperative". Stateful OOP is in no way declarative.It's also unclear what the thesis is. He says to not ask objects about their state, then later advocates for CQRS, which does exactly that.−culturedsystems6yOf course, imperative programming is just the Church encoding of declarative programming.−mgummelt6yWell, no. The lambda calculus isn't imperative.−0x8BADF00D6yIn declarative programs you specify what the program is. In imperative programs you specify what the program should do. I don’t really see the overlap.
Comments
The author is incorrectly using the term "declarative" when he's really describing "imperative". Stateful OOP is in no way declarative.
It's also unclear what the thesis is. He says to not ask objects about their state, then later advocates for CQRS, which does exactly that.
Of course, imperative programming is just the Church encoding of declarative programming.
Well, no. The lambda calculus isn't imperative.
In declarative programs you specify what the program is. In imperative programs you specify what the program should do. I don’t really see the overlap.