[haiku-development] Re: BSupportKit namespace?

  • From: Rene Gollent <anevilyak@xxxxxxxxx>
  • To: haiku-development@xxxxxxxxxxxxx
  • Date: Wed, 14 Dec 2016 19:57:01 -0500

On Wed, Dec 14, 2016 at 7:50 PM, kallisti5 <kallisti5@xxxxxxxxxxx> wrote:

  * User needs BWindow, will need to include Window.h
    and know it's part of the app kit namespace)

  #include <Window.h>
  BAppKit::BWindow(BAppKit::B_DEFINE_STUFF, things...)


I don't know what other GUI APIs you've used, but this is in fact
normal basically everywhere except here. Try Qt, you'll see multiple
layers of namespaces everywhere. .Net? Same. Java? Same. Basically
everything that isn't C-based GTK or raw Win32? The same. This isn't a
huge hurdle for people, believe it or not. Furthermore, all you have
to do is "using BAppKit::BWindow;" and then you won't need to use that
prefix everywhere. Again, this is the norm for basically every modern
object-oriented toolkit on earth.

Regards,

Rene

Other related posts: