[haiku-development] Re: BSupportKit namespace?

  • From: Ingo Weinhold <ingo_weinhold@xxxxxx>
  • To: haiku-development@xxxxxxxxxxxxx
  • Date: Thu, 15 Dec 2016 21:41:29 +0100

On 12/15/2016 02:27 AM, Jessica Hamilton wrote:

If this is the way forward, wouldn't it also be better to revise how
the naming scheme should work for new kits?

The current approach is extremely wordy, and with our 80 character
line limits, not exactly ideal.

Something along the lines of a global namespace, kits without kit in
their name, and maybe dropping the B prefix, such as:
be::support::Job. Maybe there is a case to keep the B prefix still, if
we import namespaces to cut down on typing.

+1, though I'd go with haiku::*. With C++11 a nostalgic API user (or source compatibility wrapper) might even use:

  #include <haiku/support/Window.h>

  using BWindow = haiku::interface::Window;

CU, Ingo


Other related posts: