3

Trees -> declarative programming

Loops -> functional programming

Sequences -> imperative programming

Graphs -> dynamic programming

Good mapping, yeah or no?

Comments
  • 6
    All together- Gangbang in a weird fetish bar.

    I guess that sums up programming well.
  • 11
    Functional isn't with loops, it's with recursion. Loops are imperative.
  • 6
    I didn't know data structures were limited to a certain programming paradigms...
  • 1
    Son many terms for things that likely in some cases fop entirely
  • 1
    @Fast-Nop isnt that a distinction without a difference?

    If so, the joke went over my head.
  • 0
  • 1
    @Wisecrack Especially when the compiler turns it into a loop for you. I don't see recursion being a defining attribute of functional.
  • 1
    Well everything eventually is a graph. It’s just a matter of time and money invested in project.
  • 3
    @IntrusionCM I have had a lambda dry humping my leg for about two weeks now.

    Can I leave the bar?
  • 2
    @sariel sure you can as long as you don't recurse.
  • 1
    @Wisecrack @Demolishun (ye olde) loops are primitive recursive, recursion is more general. Of course with crazier loops and additional data structures (namely, a stack) you can compute general functions, but yeah.

    Recursion itself is pretty basic to FP design, because you can't get much done in pretty much any lambda calculus without it. If that isn't suggestive, the class of functions computed by both LCs and Turing machines is the general recursive functions, that name should tell you how important it is.

    Also, pretty confusing mapping, because what "property" of the LHS are you trying to match in the RHS?
  • 0
  • 0
    @RememberMe surface structure is all.

    Just a shower thought because I noticed declarative languages like html ("language" here is a stretch), flutter, etc., are basically trees at the surface level.

    I think of
    Functional I think recursion, and loops. If that's the wrong takeaway, I'm happy for the correction.

    Another fun one I've seen is "functional is just imperative with Russian nesting dolls."
  • 0
    Perry sure I read that functional is declarative
Add Comment