> On Oct 3, 2024, at 2:37 PM, Said Abou-Hallawa <sabouhall...@apple.com> wrote:
> 
> Object* objectIfExists() { return m_object.get(); }
> Object* object(); // It try to create m_object but it still may return 
> nullptr;


Well, this is super confusing to me and I think we should find a better pattern 
for this particular edge case. Maybe something with “try” in the name like we 
do for “tryCreate()” factory functions.
`Object* object()` & `Object* tryEnsureObject()` ?
_______________________________________________
webkit-dev mailing list
webkit-dev@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-dev

Reply via email to