3 ms·
> The post mocks the mindset featured within your comment. Actually, the post pretends you know nothing about functional programming and then presents K as the
by saagarjha 7y ago
> The post mocks the mindset featured within your comment.
Actually, the post pretends you know nothing about functional programming and then presents K as the solution–but, as the grandparent points out, it’s not the only one. The post actually has no comment on this.
(I should also note that smugly mocking a mindset by reducing it to a caricature might help explain why people are exasperated by the post’s patronizing tone.)
- oefrha 7y agoThe post sort of comments on that by claiming that K's somewhat cryptic-looking operator-style functions are more legible than named counterparts. > Does giving a K idiom a name make it clearer, or does it obscure what is actually happening? sum: +/ raze: ,/ ordinal: << > The word “ordinal” can mean anything, but the composition << has exactly one meaning. (That one took a while to click, but it was satisfying when it did.) (Didn’t click for me but I also didn’t spend a while on it, whatever.) However, one should note that it's not like other functional languages don't have their share of cryptic operators, intuitiveness up to debate of course. Here's a list for Mathematica: https://mathematica.stackexchange.com/a/25616 https://mathematica.stackexchange.com/a/25616 At the end of the day this approach doesn't scale very well and skews nicer when you look at very simple examples like +/!100. Anyway, I'll take my sum(range(100)).
- satokema 7y agoeverything any of us work with is a cryptic operator, if you think about it...