Kan-Ru Chen (陳侃如)於 2016年5月24日星期二 UTC+8下午4時00分12秒寫道: > I think the current practice is to use already_AddRefed<T> as return > type and return foo.forget() > > Kanru
I think that is the legacy when we don't have move semantics. Returning RefPtr<t> won't incur ref-counting overhead and is more expressive and functional. _______________________________________________ dev-platform mailing list dev-platform@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-platform