1 equal to 1 (1==1) is more readable...everyone know what = is....and while(1) is not while(true)....not at all....when u write while 1 is equal to 1.....any fool can get that.... Also....my next point was this only....while(1) is not universally allowed....although while(1==1) is present in most of the languages....including Perl,Java....
@Faizan: Bhai I don't think non programmer willeven know meaning of == Inspite putting only "1" will give impression of TRUE to any one, Programmer or non.. Again You are a Java Programmer I expected a while(true) from you :)
i doubt while(1) is as readable as while(1==1) is....i dont think any non-programmer can appreciate what while(1) is!....but can understand what the tag meant when it says while(1==1)
No comments:
Post a Comment