Recent submissions

Comment · 1 year ago
That's the best and succinct description of using ChatGPT for this kind of things: it's a floor raiser, not a ceiling raiser.
Comment · 9 years ago
That's no true at all. The syntax is pretty similar with few key differences. The idea is for dotty to become Scala 3.0. But, in the meantime, the next Scala 2.* versions will pave the way for 3.0. Meaning to avoid too many breaking changes in 3.0.

The above has been said repeatedly by Martin Odersky (creator of Scala) and the folks on the Scala compiler team in talks and discussions.

Comment · 12 years ago
You may try out using Scala as script language like this: "scala myScript.scala". The first startup times are slower, and even after that it may be slower than Python/Ruby but it still may be sufficient for your use case.

Using "sbt ~run" (re-runs your program automatically at every file change) may also be an option.

Comment · 12 years ago
Although named arguments are good, you won't use it in all function calls.
Comment · 12 years ago
Can you elaborate on this: "and to handle all cases..".
Comment · 12 years ago
From my brazilian perspective it's very strange to read this. In Brazil, vacation is mandatory by law. Any employee has 30 days of vacation by year. But the moment the employee goes on vacation and how he does it (30 days straight, 15-15 days, 20-10...) is still discussed previously with the employer.

I'm not judging which one is better, just acknowledging the culture difference.

Comment · 13 years ago
Not really a natural law, but medicine from time to time finds out that working too much or sleeping less or not having time for pleasure/fun/family hurts your health.
Comment · 13 years ago
You can actually make it automatically convert in both directions with just an import. But it is good practice to do it explicitly. In my opinion, for a typesafe language, this is a good way to do it.
Comment · 13 years ago
I think "distributed" in this context is about multiple machines/servers. Not multiple plataforms.

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton