4 ms·
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/autom
by solarkraft 9y ago
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://en.wikipedia.org/wiki/Vala_(programming_language)
https://wiki.gnome.org/Projects/Vala https://wiki.gnome.org/Projects/Vala