On Tue, Dec 23, 2014 at 1:51 PM, L. David Baron <dba...@dbaron.org> wrote: > > > Just to be clear, is your problem the implicit conversion itself > > or the reference count increment/decrement? > > The latter -- the problem is that there's an implicit conversion > that has surprising side-effects.
Why are you surprised that when you pass a pointer to a function that the function gets a pointer? I agree that the performance is less than perfect. I do have to ask: at what point do you consider the preservation of developer time more valuable than the preservation of CPU time? We could be writing in machine code directly, but we made some trade-offs along the way. There will always be exceptions, and .get() exists to support those (or Waldo's proposed clever hacks, I suppose). _______________________________________________ dev-platform mailing list dev-platform@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-platform