News for hackers. Stuff that matters.
Re:Sleep - Perl inspired scripting language for JVM by j_baker on Tuesday May 25, 2010 @09:38AM (#1377365)
I'd be interested if the website made it easy to get examples of sleep's syntax. An ounce of example is worth a pound of feature list. :-)

For instance, the scala website has a nice big link that I can use to find examples: http://www.scala-lang.org/

Why can't more websites for programming languages do the same?

Re:Sleep - Perl inspired scripting language for JVM by raffi on Tuesday May 25, 2010 @09:49AM (#1377393)
The Sleep Manual is a good source of examples, every function in the language has an example associated with it:

http://sleep.dashnine.org/manual/

Another good place is the Sleep Snippets blog. I haven't updated it in a long time though:

http://www.jroller.com/sleepsnip/

Re:Sleep - Perl inspired scripting language for JVM by j_baker on Tuesday May 25, 2010 @12:06PM (#1377748)
Those aren't good sources of examples. They're good sources of explanations with examples.

When I'm evaluating a language, my first priority is seeing whether it's even worth spending the time to read the explanations. First and foremost, I just want to get a feeling for what the language actually looks like. If I like what I see, then I'll be willing to go more in depth. I'm much more likely to look elsewhere if I have to wade through the manual or complex explanations to get an idea of what a language looks like. It's not that I can't handle the complex explanations. It's just that I can't handle every language's complex explanations. :-)