Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

1 //Tutorial file HelloWorld.x10

2 class HelloWorld {

3   public static def main(argv:Rail[String]) {

4     x10.io.Console.OUT.println("Hello, World");

5   }

6 }

...ayfkm?

You've already failed.



Our first attempt won't work.

...

public static def main(argv:Rail[String]) {

This line is just the same as in the Hello, World example. (In fact, the Hello, World example had a latent version of the same bug. It compiled because we never tried to do anything with argv, and thus never tried to do anything that violated the place rules with it.)


I never thought I'd hear myself say that Java looked a little bit elegant.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: