News for hackers. Stuff that matters.
Re:Sorbet and 100% cov makes Ruby refactoring possible by lawl on Monday April 25, 2022 @05:16PM (#31160732)
> Hoping new age compiled languages like Crystal & Nim fill the gap of performance, types & productivity.

Yes, go is verbose at times. But the go language server for example lets you not write a lot of the boiler plate you see there.

E.g. instead of typing out a for loop, i'd just (start) typing `foo.range!`, or for sorting `foo.sort!`.

I'm not going to argue that writing it in go even with those would be more terse, just that I think it looks worse than it is.

Re:Sorbet and 100% cov makes Ruby refactoring possible by folkrav on Monday April 25, 2022 @07:12PM (#31162058)
Yeah the go one looks terrible but then you take a look at it and it's just creating slices, looping over stuff and appending stuff to the aforementioned slices. The syntax is much less expressive, therefore very verbose, but it's basically doing the same thing, without the sugar of being able to inline some of the logic.