o******0 发帖数: 105 | 1 It is very confusing and error-prone.Even Java does not have those. |
f******y 发帖数: 2971 | 2 auto我认为应该尽量只用于局部变量,就是前后都扩起来一目了然地知道是什么类型的
时候。它的一个用处就是省了一些typing,尤其在namespace层数比较多,或者涉及
iterator的时候。
【在 o******0 的大作中提到】 : It is very confusing and error-prone.Even Java does not have those.
|
b*******s 发帖数: 5216 | |
f******y 发帖数: 2971 | 4 C#里有var
【在 b*******s 的大作中提到】 : 我的建议是,去学java或者c#,挺好的
|
o******0 发帖数: 105 | 5 It is very confusing and error-prone.Even Java does not have those. |
f******y 发帖数: 2971 | 6 auto我认为应该尽量只用于局部变量,就是前后都扩起来一目了然地知道是什么类型的
时候。它的一个用处就是省了一些typing,尤其在namespace层数比较多,或者涉及
iterator的时候。
【在 o******0 的大作中提到】 : It is very confusing and error-prone.Even Java does not have those.
|
b*******s 发帖数: 5216 | |
f******y 发帖数: 2971 | 8 C#里有var
【在 b*******s 的大作中提到】 : 我的建议是,去学java或者c#,挺好的
|
d****i 发帖数: 4809 | 9 C++11's auto is fucking ugly IMHO. Static typed language should stick to its
static typed style. Java in this case stick to its static typed style
without any pollution.
【在 o******0 的大作中提到】 : It is very confusing and error-prone.Even Java does not have those.
|
N******K 发帖数: 10202 | 10 写template 一个类里面一大堆 typedef 看一会就晕了
用template <>套<>
auto一上 代码清爽
能用auto 我就用auto
its
【在 d****i 的大作中提到】 : C++11's auto is fucking ugly IMHO. Static typed language should stick to its : static typed style. Java in this case stick to its static typed style : without any pollution.
|
N******K 发帖数: 10202 | 11 将来当全堆程序员 更好
【在 b*******s 的大作中提到】 : 我的建议是,去学java或者c#,挺好的
|