相关疑难解决方法(0)

C# ??Ruby中的运算符?

有可能实现?? ?? Ruby中的运算符?

a = nil
b = 1

x = a ?? b # x should == 1
x = b ?? 2 # x should == 1
Run Code Online (Sandbox Code Playgroud)

ruby operators null-coalescing-operator

36
推荐指数
3
解决办法
7485
查看次数

标签 统计

null-coalescing-operator ×1

operators ×1

ruby ×1