logoalt Hacker News

saghmtoday at 5:15 PM1 replyview on HN

I assume they mean to call the function from two (or more) parts of the code (i.e locations). It's not immediately apparent why this is meaningfully different than what would be possible in Java though, since ostensibly a function is the same as a method by just moving the callee to the list of parameters. (There are some things in a Java method that you can do that don't translate to most functional languages, like invoking the version of the method from a superclass, but there's nothing forcing you to do any of those from the language perspective, so it seems a bit strange to claim that the language itself is the issue rather than maybe the specific patterns that were chosen, maybe by their coworkers or just not common in the ecosystem).


Replies

bhoustontoday at 6:07 PM

You can do functional in any language. I haven’t designed a new class in years in TypeScript and I’ve been more productive as a result.