2 ms·
> Gtk.Application( "com.example.App", ApplicationFlags.FLAGS_NONE ); Don't they have optional arguments? Weird Gtk.Application("com.example.App");
by rurban 4y ago
> Gtk.Application(
"com.example.App",
ApplicationFlags.FLAGS_NONE
);
Don't they have optional arguments? Weird
Gtk.Application("com.example.App");
would look much nicer for such a glue language.
- capableweb 4y agoVala does have optional parameters! Maybe it wasn't there in the initial version, and now the core API is stabalized so they don't use it for that call? Here is a random example I found on the interwebs: string greet (string name, string language = "English") { if (language == "English") { return @"Hello, $name!"; } else { return @"Sorry $name, I don't speak $language"; } } greet ("John"); greet ("Jane", "Italian");