Suggestion: Implicit properties
There are various places where types have getter/setters but aren't actually properties. For example Gtk.Box.
Box has set_center_widget
/get_center_widget
but no center_widget
.
I propose we just pretend there is so instead of instantly erroring out with "center_widget not found" we first check for the existence of appropriate get_
/set_
just as set(key, val)
/get(key)
implicitly give array access
So
var box = new Box (VERTICAL, 0);
box.set_center_widget(new Button());
var btn = box.get_center_widget() as Button;
btn.label = "demo";
Could be expressed as
var box = new Box (VERTICAL, 0);
box.center_widget = new Button();
var btn = box.center_widget as Button;
btn.label = "demo";