Submitted by fchung t3_z7hlb0 in technology
dv_ t1_iya5n0h wrote
Reply to comment by ToughAd4902 in Why Functional Programming Should Be the Future of Software Development by fchung
You can do map, reduce etc. in C, albeit with a serious amount of macro trickery or function pointer usage. And yes, this does count. Is it practical? I doubt it. But it is possible.
ToughAd4902 t1_iyaa2lk wrote
my point that it didn't count is just that the macro will unwrap it to pure C, which doesn't have those constructs, so in terms of the language it doesn't actually support it, you're just adding a syntactic idea about it.
Though, to be fair, I guess that's all higher level languages do as well at the end of the day, so I guess my argument is kind of mute
Viewing a single comment thread. View all comments