[Quote=引用 54 楼 ljljlj 的回复:]
前几天给裘教授发个Email,他说自己没注意这个问题,让我问Bjarne Stroustrup,由于不懂英语,就没问.
今天实在忍不住就给Bjarne Stroustrup博士发个Email,写了两种写法的对比,写了一个Why?
他很快就回复了,原文如下:
Because the c committee likes commas, even if redundant. Both versio……
[/Quote]
[Quote=引用 54 楼 ljljlj 的回复:]
前几天给裘教授发个Email,他说自己没注意这个问题,让我问Bjarne Stroustrup,由于不懂英语,就没问.
今天实在忍不住就给Bjarne Stroustrup博士发个Email,写了两种写法的对比,写了一个Why?
他很快就回复了,原文如下:
Because the c committee likes commas, even if redundant. Both versio……
[/Quote]
前几天给裘教授发个Email,他说自己没注意这个问题,让我问Bjarne Stroustrup,由于不懂英语,就没问.
今天实在忍不住就给Bjarne Stroustrup博士发个Email,写了两种写法的对比,写了一个Why?
他很快就回复了,原文如下:
Because the c committee likes commas, even if redundant. Both versi……
[/Quote]
[Quote=引用 54 楼 ljljlj 的回复:]
前几天给裘教授发个Email,他说自己没注意这个问题,让我问Bjarne Stroustrup,由于不懂英语,就没问.
今天实在忍不住就给Bjarne Stroustrup博士发个Email,写了两种写法的对比,写了一个Why?
他很快就回复了,原文如下:
Because the c committee likes commas, even if redundant. Both versio……
[/Quote]
这不是习惯问题,你没看明白even if redundant这句话背后的涵义,BJ的意思是说,在C++中这个逗号被认为是多余的东西,因为即使没有这个逗号,...的意义也可以表达得足够明晰(这就是简洁),但为了将C的代码移植到C++不至于产生移植性问题,因此C++也同时支持C的方式。