3 ms·
It's supposed to be why(why(why(why(why(theMatter)))); not why(theMatter); why(theMatter); why(theMatter); why(theMatter); why(theMatter);
by ajuc 11y ago
It's supposed to be
why(why(why(why(why(theMatter))));
not
why(theMatter);
why(theMatter);
why(theMatter);
why(theMatter);
why(theMatter);
- hoodoof 11y agoA bug that I will blame on unclear requirements.
- christogreeff 11y agoWhy?
- KhalilK 11y agoYou could keep the second form but use a ditto operator instead; why(theMatter); why(%); why(%); why(%); why(%);
- zappo2938 11y agoWhen I'm interviewing for a job at VW and they ask this question, I can deflect with my curry skills.
- amelius 11y agoThat sounds very meta.
- erac1e 11y agocompiler error at line 1. unmatched parenthesis. ... oh don't worry it's a loosely bracketed language.
- marcosdumay 11y agoThat's one of the best points of Haskell: why . why . why . why . why $ theMatter
- erac1e 11y agoActually that is point-free
- spyrosg 11y agoCareful, enough why()'s and you invariably get nil. This is a pointer your employer probably doesn't want you to follow.
- ajuc 11y agoI usually get "Because BIG BANG". But good point - you want the why function to write the intermediate answers somewhere as a side effect.
- mrspeaker 11y agoI'd be interested to know why(Because BIG BANG)
- johnchristopher 11y agoDo not ask `Why?` Be cautious with `How?` `Why?` leads inexorably to paradox.
- TazeTSchnitzel 11y agoIn a stack language: theMatter why why why why why
- prmph 11y agoWell, that's possible. But sometimes also the whys are mutually recursive. "Why is X unelectable? Because realistically no one will vote for him. And why will no one vote for him? Because he is unelectable"
- kamaal 11y agoI think the worst case scenario is an answer that forms a question, which lead to the answer framing the very question. Infinite recursion. Basically.
- kamaal 11y agoI think its more like: Answer Why(Answer question) { if(validDivisibleQuestion(question){ return Why(question); } } I guess this is how our mind handles stuff too, and because of the stack issues is why working things on papers works better than doing it in mind.