Forum > Options
END keyword not uppercase.
BeniBela:
I think we should all be more adventurous and use something more varied:
--- Code: Pascal [+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i < x.length; i++) { x[i].style.maxHeight='none'; x[i].style.height = Math.min(x[i].clientHeight+15,306)+'px'; x[i].style.resize = "vertical";}};} ---pRoCeDuRe TFoRm1.BuTToN1cLiCk(SeNdEr: ToBjEcT);BeGiN EnD;
Peter H:
Look here:
https://books.google.de/books/about/Algorithmen_und_Datenstrukturen.html?id=kKMDBgAAQBAJ&printsec=frontcover&source=kp_read_button&redir_esc=y#v=onepage&q&f=false
I personally, in the time of color pretty printing, prefer lowercase for keywords.
BTW, at page 38, there is the proof, Niklaus Wirth used "äöü..." in variable names. Can FPC do this? ;)
Ñuño_Martínez:
It is a personal taste thing, but I'm with mr. segfault here: I find keywords uppercase and identifiers calmel-case (except constants) easier to read even with syntax highlighting. May be because I'm used to it (I started with BASIC then QuickBASIC).
ASerge:
Of course, everyone likes its style, but when we publish code, uploaded on forum, need to adhere to common style. It's like social behavior: even if you're like to being naked at home, it's better not to do it on the street.
Moreover, when I see such code in FPC sources:
--- Code: Pascal [+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i < x.length; i++) { x[i].style.maxHeight='none'; x[i].style.height = Math.min(x[i].clientHeight+15,306)+'px'; x[i].style.resize = "vertical";}};} ---Procedure getdir(drivenr:byte;Var dir:shortstring);I immediately get the feeling that the code was written by amateurs.
But if it is in the form:
--- Code: Pascal [+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i < x.length; i++) { x[i].style.maxHeight='none'; x[i].style.height = Math.min(x[i].clientHeight+15,306)+'px'; x[i].style.resize = "vertical";}};} ---procedure GetDir(DriveNumber: Byte; var Dir: ShortString);this means that the author has published the code, knows how to work in a team and is probably more professional.
munair:
The days that BASIC used or converted keywords to uppercase also belongs to the dinosaurs. These days VisualBasic uses propercase aka titlecase by default. Personally I would vote for lowercase keywords and case dependency at the same time. :D
Navigation
[0] Message Index
[#] Next page
[*] Previous page