From: Kenzaburo I. <ke...@30...> - 2004-05-05 02:04:59
|
All you guys with strong opinions ;p If this continues we might have end up with an emacs/Xemacs split, one version with echos, one with print() and countless other in-betweens. I think we'll continue this development period and then once we're in cod= e freeze for 0.19.0 we'll switch to echo/print/PRINT/whatever in one massiv= e replacement operation. -Ken > While I don't really have much preference, I'm more used to echo. > I would like, however, to point out an inaccuracy in Andre's text > below... > That being that echo can indeed be used as a function: > echo("<pre>"); works just as well as echo "<pre>"; > > But, like I said, I'm happy to use either, in the right context. > > Rob. > > On Wed, 2004-05-05 at 10:25, Andre Eisenbach wrote: >> I strongly dislike echo. This is not perl, bash or DOS :p >> >> But seriously, echo vs. print is mostly a matter of preference. I much >> prefer print() (written like a function). It also integrates well into >> code which also makes use of printf(). >> As in ... >> print( "<h1>Result</h1>" ); >> printf( "Speed: %03d mph", $speed ); >> ... looks better than ... >> echo "<h1>Result</h1>"; >> printf( "Speed: %03d mph", $speed ); >> >> From a more technical point of view, the fact that print() behaves li= ke >> a function means it can be used as part of more complex expressions, >> where echo cannot (not that thats good coding practise). >> >> The speed issues can safely be ignored. >> >> Cheers, >> Andr=C3=A9 >> >> Victor Boctor wrote: >> >> >Hi All, >> > >> >I personally prefer "echo", because it looks better, easier to type, >> and >> >I can't see a reason to use print / PRINT instead. >> > >> >Regards, >> >Victor. >> > >> > >> > >> > >> >------------------------------------------------------- >> >This SF.Net email is sponsored by: Oracle 10g >> >Get certified on the hottest thing ever to hit the market... Oracle >> 10g. >> >Take an Oracle 10g class now, and we'll give you the exam FREE. >> >http://ads.osdn.com/?ad_id=3D3149&alloc_id=3D8166&op=3Dclick >> >_______________________________________________ >> >Mantisbt-dev mailing list >> >Man...@li... >> >https://lists.sourceforge.net/lists/listinfo/mantisbt-dev >> > >> > >> >> >> >> ------------------------------------------------------- >> This SF.Net email is sponsored by: Oracle 10g >> Get certified on the hottest thing ever to hit the market... Oracle 10= g. >> Take an Oracle 10g class now, and we'll give you the exam FREE. >> http://ads.osdn.com/?ad_id149&alloc_id=C2=8166&op=3Dclick >> _______________________________________________ >> Mantisbt-dev mailing list >> Man...@li... >> https://lists.sourceforge.net/lists/listinfo/mantisbt-dev > > > > ------------------------------------------------------- > This SF.Net email is sponsored by: Oracle 10g > Get certified on the hottest thing ever to hit the market... Oracle 10g. > Take an Oracle 10g class now, and we'll give you the exam FREE. > http://ads.osdn.com/?ad_id=3D3149&alloc_id=3D8166&op=3Dclick > _______________________________________________ > Mantisbt-dev mailing list > Man...@li... > https://lists.sourceforge.net/lists/listinfo/mantisbt-dev > |