Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
All together- Gangbang in a weird fetish bar.
I guess that sums up programming well. -
-
@Wisecrack Especially when the compiler turns it into a loop for you. I don't see recursion being a defining attribute of functional.
-
vane110523yWell everything eventually is a graph. It’s just a matter of time and money invested in project.
-
sariel84473y
-
@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? -
@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."
Trees -> declarative programming
Loops -> functional programming
Sequences -> imperative programming
Graphs -> dynamic programming
Good mapping, yeah or no?
random