x*****o 发帖数: 28 | 1 Java有没有跟C++类似的
#define
#ifdef
之类的宏命令?
查了下,似乎没有? 不确定。
double thanks. ;) |
w***f 发帖数: 75 | 2 没有。
【在 x*****o 的大作中提到】 : Java有没有跟C++类似的 : #define : #ifdef : 之类的宏命令? : 查了下,似乎没有? 不确定。 : double thanks. ;)
|
x*****o 发帖数: 28 | 3 oo. thx.
不爽,debug的代码只能注释掉了...
【在 w***f 的大作中提到】 : 没有。
|
w*******g 发帖数: 9932 | 4 use aspectJ to weave in debugging code.
【在 x*****o 的大作中提到】 : oo. thx. : 不爽,debug的代码只能注释掉了...
|
y***u 发帖数: 101 | 5 有assert,用来debug也不错
【在 x*****o 的大作中提到】 : oo. thx. : 不爽,debug的代码只能注释掉了...
|
s*********b 发帖数: 815 | 6 There is something in this world called logger
【在 x*****o 的大作中提到】 : oo. thx. : 不爽,debug的代码只能注释掉了...
|
x*****o 发帖数: 28 | 7 both assertion and logger are good.
I just read over these two.
I prefer the #define, because I am doing the performance
study. I don't even like the debug code to have impact over
the processing time.
【在 s*********b 的大作中提到】 : There is something in this world called logger
|
P*****f 发帖数: 2272 | 8 But if you are really concerned with performance, why Java?
【在 x*****o 的大作中提到】 : both assertion and logger are good. : I just read over these two. : I prefer the #define, because I am doing the performance : study. I don't even like the debug code to have impact over : the processing time.
|
x*****o 发帖数: 28 | 9 I also think so now.
previously I think java huge library is good, easy for implementation.
but now for performance, I already throw out those libraries...
only use raw array and math/io package... han~.
【在 P*****f 的大作中提到】 : But if you are really concerned with performance, why Java?
|