>I think you got my point wrong. If round brackets have been the norm for
>both Fox Software and Microsoft, then it is perfectly fine to use
>them.
This is your opinion... :)
>As with the others,
>using an array that has the same name as a FoxPro function is
>simply bad coding.
Sure! Until it happens to you...
>I have used Cobol, PL/1, Pascal, Fortran, FoxPro, and C, and it is
>only in C that the square bracket is the norm for arrays; in all
>the others round brackets are used by the majority of coders and
>by the language manufacturers.
I'm not sure about Cobol, Fortran and PL/1. I never used PL/1 and it's too long time since I haven't used the other two. But in Pascal, only [] are used for arrays.
>No good programmer could possibly confuse an array with a function
>when looking at a someone else's code...
Ok. In this case, I am not a good programmer.
>And to finish : did you actually realise that you can use square
>brackets for functions as well ?!!! Well, well ....
As I said yesterday, everyone can use whatever s/he wants. It's your chioce. You asked me and I answered to you. To make it short: I gave two strong reasons to use []: avoid some possible bugs and good readability. I still see no reason to use () for arrays. 2-0...
Vlad
Précédent
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement