News for hackers. Stuff that matters.
Re:Rails is not written in Ruby by servytor on Friday February 04, 2022 @05:31PM (#30214310)
Because intellisense can help.
Re:Rails is not written in Ruby by geysersam on Friday February 04, 2022 @05:48PM (#30214530)
That makes sense. This is the most convincing reason I've come across in this thread.

How do code completion work in languages where the predicate goes before the subject?

Re:Rails is not written in Ruby by samatman on Friday February 04, 2022 @07:56PM (#30215823)
Easily, for typed languages: the values which can be parameters are constrained to values which are in scope and of the appropriate type.
Re:Rails is not written in Ruby by MadcapJake on Friday February 04, 2022 @09:51PM (#30216621)
Both styles can utilize that kind of intellisense on parameters. What about code completions before you've specified the parameters? Not really possible in the functional style unless your functions are namespaced and then you're still limited to what was in that module. Only with object-verb method passing can you get code completions related to the data before you've started specifying (the rest of) the parameters.

When declaring a variable, in a typed language you could use the variable type to filter down the possible function completions based on return type; in practice, I don't think any LSPs do that.