Reputation
410
Top tag
Next privilege 500 Rep.
Access review queues
Badges
3 6
Impact
~2k people reached

  • 0 posts edited
  • 0 helpful flags
  • 17 votes cast
Aug
4
awarded  Autobiographer
Aug
3
comment How do people get rid of conditional branches in Functional Programming?
So, if I understand correctly, "value at runtime" equals runtime type. And you equate OO with dynamic dispatch and FP with static dispatch. If that's the case, then I understand why you would include it in your answer. However, I would still suggest adding those definitions to the answer. OO is already a very overloaded term, and your definition leaves out some important aspects of the most popular OO languages (specifically fields and inheritance). Thanks for the interesting convo!
Jul
31
comment How do people get rid of conditional branches in Functional Programming?
RE: point 3: I read "there is one" as "only one". So fair enough. RE: OO: Java does not dispatch on runtime values. So by your definition it's not OO. Haskell has type dispatch, so by your definition it is OO. Besides dispatch is only one facet of OO. State management is another major factor. Either way, I'm not sure a discussion of what is or isn't OO is relevant to the question. So you could certainly just remove any judgement calls about it.
Jul
30
comment How do people get rid of conditional branches in Functional Programming?
1) Clojure is not object oriented by any sense of the word that I know. If you believe otherwise, you should state your reasoning in the answer. 2) Clojure does not support inheritance in the OO sense of the word. You can ape it like so: gist.github.com/david-mcneil/661983, but I would not call the ability to merge dispatch maps an inheritance scheme. 3) It's a rather bold statement to say that Haskell is the only language that does not have inheritance. I also believe it to be incorrect. If you believe otherwise, you should state your reasoning in your answer.
Aug
11
awarded  Critic
Apr
23
awarded  Yearling
Apr
23
awarded  Yearling
Apr
23
awarded  Supporter
Apr
23
awarded  Mortarboard
Apr
23
awarded  Good Answer
Apr
23
awarded  Teacher
Apr
23
awarded  Nice Answer
Apr
22
answered Should I use a code repository if I am the only one working on a project?