HGD-coder commented on PR #3184:
URL: https://github.com/apache/dubbo-go/pull/3184#issuecomment-3816152243

   <img width="1188" height="201" alt="image" 
src="https://github.com/user-attachments/assets/b90df2a5-85b8-4225-8287-4eb366108c69";
 />
   ![Uploading image.png…]()
   
我想着用空对象,就是原来的代码应该都有对于url内存在各种内容的匹配。这个示例代码只是说明url=nil的判断可能需要额外的代原始逻辑变更,或者过滤需要在每一层实现;但是空对象在这个情况下和正常对象一样到了下一层,它在下一层不会因为再调用url的方法报panic。但是具体的底层我并不清楚,因为我不知道引入空对象内部的空值会不会和之前的defaultvalue重合判断,所以我希望有经验或者了解底层的人帮忙看看。


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to