Re: Should Gtk be a namespace?
| From: | Bruno P. Gonçalves | Date: | Thu, 04 Jul 2019 16:41:55 +0000 |
| Subject: | Re: Should Gtk be a namespace? | ||
| References: | 1 | Groups: | php.gtk.dev |
| Request: | Send a blank email to php-gtk-dev+get-4729@lists.php.net to get a copy of this message | ||
If you can, vote on twitter to get centered to my mind
https://twitter.com/ScornInPC/status/1146740464541995009
Thank you
- - -
Bruno Pitteli Gonçalves
AndOr - https://andor.com.br/
General - http://www.agenciageneral.com.br/
On Thu, Jul 4, 2019 at 9:03 AM Bruno P. Gonçalves <scorninpc@gmail.com>
wrote:
> 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 = 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 = new \Gtk\SourceView();
>
> or
>
> $sv = new \GtkSource\View();
>
> Any advice?
>
> - - -
> Bruno Pitteli Gonçalves
> AndOr - https://andor.com.br/
> General - http://www.agenciageneral.com.br/
>