1
des 2020 年 9 月 23 日
我记得有好几个语言支持这种操作,比如 ruby:account&.owner&.address
swifter 也是用"?"的,借鉴的是谁就不知道了 相关提案在这里 https://github.com/tc39/proposal-optional-chaining |
2
yimity 2020 年 9 月 23 日
Angular 来源于谁的?
|
3
des 2020 年 9 月 23 日
|
4
ragnaroks 2020 年 9 月 24 日
只说作用的话,我个人见到最早的是 csharp 的
"obj1?.method1()" "var obj=obj1 ?? obj2" |