Hacker News new | past | comments | ask | show | jobs | submit login

If we're playing "languages that compile to C" I'll add Vala.

- Many apps for Elementary and other Gnome platforms are written in it

- oop

- properties/automatic getter,setter

- for each loops

- closures

- reference counting

- great compatibility with Gnome things

- interoperable with c

GTK example (from german wikipedia):

  using Gtk;
  
  int main (string[] args) {
      Gtk.init (ref args);
  
      var window = new Window ();
      window.title = "A simple GTK+ Program";
      window.set_default_size (300, 50);
      window.position = WindowPosition.CENTER;
      window.destroy.connect (Gtk.main_quit);

      var button = new Button.with_label ("Click me!");
      button.clicked.connect (() => {
      button.label = "Thanks!";
    });

      window.add (button);
      window.show_all ();

      Gtk.main ();
      return 0;
  }
https://en.wikipedia.org/wiki/Vala_(programming_language) https://wiki.gnome.org/Projects/Vala



Consider applying for YC's Spring batch! Applications are open till Feb 11.

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

Search: