[haiku-development] Re: BWeakReferenceable

  • From: Stephan Aßmus <superstippi@xxxxxx>
  • To: haiku-development@xxxxxxxxxxxxx
  • Date: Sun, 25 Sep 2011 21:40:52 +0200

Hi,

On 25.09.2011 21:02, clemens.zeidler@xxxxxxxxxxxxxx wrote:
I'm fine with B_TRANSLATE but honestly if you seriously look into the
Haiku code the first time, I'm pretty sure most devs would find out
pretty quick that TR stands for translation, especially when it always
encloses a string.

It clobbers the global namespace, that's the problem. If any developer likes TR better, they can just define that macro themselves in their code.

For references the template argument already gives a strong hint what
the object could do and if you are not familiar with smart pointers
BReference does not helps much either. But if you are familiar to smart
pointers its pretty obvious.

Same here.

Best regards,
-Stephan


Other related posts: