Hacker News new | ask | show | jobs
by adamnemecek 1041 days ago
These abstractions are not native to go. If you miss them, pick a better language.
1 comments

Just like FPP is incompatible with C, I agree. And if you want a real taste of FPP go with either Haskell, OCaml or even the good ol' LISP
Or Rust.
My contention that FP has no meaning gains another point of evidence.
As a Rust guy, I disagree. For one, Rust does not have lazy evaluation, just like C which is why I raised the point C is incompatible with FPP. Lazy evaluation in C (and Rust) can be emulated by function pointers (and closures), but it is not easy to use
> Rust does not have lazy evaluation

Does one need lazy evaluation to be FP?

Scheme isn't lazy to my knowledge.

I'm sure it would make a compiler's optimization job easier.