Should Gtk be a namespace?

[email protected] (Bruno P. Gonçalves) Thu, 4 Jul 2019 09:03:33 -0300
Newsgroups php.gtk.dev
Message-ID <CAHOq+hncVVWVCq3smfawk0hR2QxYkuz5U8_eQ03YWC_3RJxo8w@mail.gmail.com>
--00000000000084a808058cd9c68e
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

I'm almost completing the implementation of Gtk classes, and by writing
some Gdk and GtkSourceView features, I came to doubt to use Gtk as a
namespace.

I think it would be nice to have Gtk and Gdk as namespaces, like.

$win =3D new \Gtk\Window();
$win->show_all();
\Gtk\main_quit();

The problem are. What the best place to add 3th party code? Like
SourceView? Inside Gtk namespace? on own namespace?

$sv =3D new \Gtk\SourceView();

or

$sv =3D new \GtkSource\View();

Any advice?

- - -
Bruno Pitteli Gon=C3=A7alves
AndOr - https://andor.com.br/
General - http://www.agenciageneral.com.br/

--00000000000084a808058cd9c68e--