digitalmars.D.learn - English binary logic operators
- David Qualls (16/16) Nov 07 2006 I just compiled my first D function (adapted from C), and had to
- Bill Baxter (10/30) Nov 07 2006 +1
- Ary Manzana (6/40) Nov 07 2006 I guess the main reason to stick with symbols is some compatibility with...
- antonio (19/61) Nov 23 2006 Well..
- nobody_ (10/17) Nov 23 2006 As for me: Please start imposing english to the world (English isn't my
- Daniel Giddings (12/38) Nov 23 2006 "English is the most widely taught and understood language in the world,...
- antonio (13/56) Nov 23 2006 I'm not really interested: spanish coding using english keyword has a
- Carlos Santander (21/81) Nov 23 2006 I code in Spanish when it's going to be private code (seen only by my ey...
- Georg Wrede (8/104) Nov 23 2006 Tienes razón!
- Ary Manzana (26/137) Nov 23 2006 ¿Y qué tal el Esperanto? :-P
- Carlos Santander (7/39) Nov 23 2006 Eso es peor. Es como decir, un francés y un inglés quieren hacer negoc...
- Don Clugston (2/123) Nov 24 2006 Jes! Bonvolu!
- nobody_ (1/9) Nov 25 2006 Why do you reply in spanish?
- Bruno Medeiros (19/26) Nov 24 2006 Well I say *don't* stop imposing english to the world. Hum, "imposing"
- antonio (5/33) Nov 25 2006 Simplicity in arguments forced million people die in Holocaust :-/.
- Bill Baxter (4/14) Nov 25 2006 Cool! Thread's officially over now!
- Bruno Medeiros (6/23) Nov 28 2006 Hell yeah... and it came surprisingly fast, Blitzkrieg style :P
- Bill Baxter (5/28) Nov 28 2006 :-)
- John Reimer (4/30) Nov 28 2006 I thought it was over... until you brought it up here. :D
- nobody_ (8/37) Nov 25 2006 Lol, talk about simple arguments :D
- Don Clugston (14/78) Nov 24 2006 I've got a lot of sympathy to this. I'm really surprised that I don't
- Craig Black (15/92) Nov 27 2006 I suppose Latin would be great if you want language neutrality. Might b...
- Lars Ivar Igesund (7/13) Nov 27 2006 Esperanto?
- David Qualls (36/49) Nov 27 2006 bigot here,
- Thomas Kuehne (15/19) Nov 27 2006 -----BEGIN PGP SIGNED MESSAGE-----
- Daniel Keep (19/50) Nov 28 2006 Hang on... doesn't that header define macros that look like normal
- Sean Kelly (5/50) Nov 28 2006 No. They actually alias '&&' with 'and'. Macros are a wonderful (read:...
- Bill Baxter (18/64) Nov 28 2006 And not doing your homework either. :-)
- Daniel Keep (5/79) Nov 28 2006 Blech. Don't mind me, then. In my defense, I didn't even know that
- Don Clugston (3/12) Nov 30 2006 Most dishonest politician I know of. I'm not going back to Oz until he's...
- Bill Baxter (37/41) Nov 07 2006 I think my meaning wasn't so clear so let me rephrase.
- Sean Kelly (13/46) Nov 08 2006 For what it's worth, 'and' and 'or' as synonyms for '&&' and '||'
- Bruno Medeiros (6/46) Nov 14 2006 What do C trigraphs have to do with 'and' and 'or' as synonyms for '&&'
- Sean Kelly (3/47) Nov 14 2006 Nothing :-p I was confusing two similar but unrelated language features...
- =?UTF-8?B?QW5kZXJzIEYgQmrDtnJrbHVuZA==?= (4/19) Nov 24 2006 I think it's a sign of weakness that there can be only one way to do it:
- BCS (5/25) Nov 07 2006 Interesting, I have never heard about iso646.h before. I have never seen...
- Ary Manzana (2/4) Nov 07 2006 "and" dosen't look like an identifier in my editor: it's blue instead of...
- Bill Baxter (16/42) Nov 07 2006 I'd never heard of it either. But I love the description on this page:
- Hasan Aljudy (6/61) Nov 08 2006 ummmm .. mathematicians use more complicated symbols and notations than
- Daniel Keep (28/35) Nov 09 2006 It's funny; but the early programming languages were designed by
- Max Bolingbroke (5/16) Nov 10 2006 I heard a story (possibly apocryphal) that the "\" character was
- Bill Baxter (7/29) Nov 10 2006 I don't know about logical operators, but it sure is good for making
- Bill Baxter (11/16) Nov 10 2006 I remember when I was first learning Japanese, it occurred to me "Whoa!
- Jarrett Billingsley (4/13) Nov 10 2006 Having taken a few semesters of Japanese, I've noticed I've started to u...
- Hasan Aljudy (5/23) Nov 10 2006 Kanji as shorthand? I don't know, I find myself slower when writing
- Bill Baxter (19/46) Nov 10 2006 Some are simple, like
- Georg Wrede (5/58) Nov 12 2006 Hmm, gotta admit UTF is a Good Thing. Or else we couldn't have this
- Daniel Keep (19/31) Nov 12 2006 Well, you'd just want to make sure you don't get your objects
- Bill Baxter (7/35) Nov 12 2006 Too funny.
- antonio (12/52) Nov 23 2006 Ok...
- Samuel MV (15/73) Nov 24 2006 Antonio, I'm also spanish and I think would be a big problem to allow
- Frits van Bommel (2/16) Nov 24 2006 s/spanish/dutch/, s/also // (and maybe a grammar checker :P) and I concu...
I just compiled my first D function (adapted from C), and had to replace all my 'and' 'or' and 'not's with the arcane &&, ||, and ! from prehistoric C to get it to compile. iso646.h has been a part of C for several years. Perl, C++ and possibly other languages have all adopted 'and', 'or', and 'not' as part of their grammar. I write software that will be maintained by non-programmers (mathematicians, who would prefer that I use Fortran). Lots of funny symbols in source code (like && || !) make it difficult to read for the non-immersed (ah, who am I kidding, I even have trouble reading it now and then). Is there any future to D incluing the logical operators in English, as opposed to &!|%'ish? (I didn't mention it, but 'mod' might also be a good (easy for non-programmers to understand) substitute for '%'.) David
Nov 07 2006
David Qualls wrote:I just compiled my first D function (adapted from C), and had to replace all my 'and' 'or' and 'not's with the arcane &&, ||, and ! from prehistoric C to get it to compile. iso646.h has been a part of C for several years. Perl, C++ and possibly other languages have all adopted 'and', 'or', and 'not' as part of their grammar. I write software that will be maintained by non-programmers (mathematicians, who would prefer that I use Fortran). Lots of funny symbols in source code (like && || !) make it difficult to read for the non-immersed (ah, who am I kidding, I even have trouble reading it now and then). Is there any future to D incluing the logical operators in English, as opposed to &!|%'ish? (I didn't mention it, but 'mod' might also be a good (easy for non-programmers to understand) substitute for '%'.) David+1 After 20 years of C/C++ my use of && and || was pretty instinctual, but after just a few months of working with Python on the side I found I started typing 'and' and 'or' without thinking about it. It makes complicated expressions more readable and would fit in great with D's more "modern" look. As noted before, I'm also in favor of allowing 'in' to replace ';' in foreach statements. --bb
Nov 07 2006
Bill Baxter escribió:David Qualls wrote:I guess the main reason to stick with symbols is some compatibility with C/C++ source code. Anyway, I also like the idea of words instead of symbols. You benefit from readability and it's also much more simpler to type (i.e. you don't you shift or look in a new keyboar for them).I just compiled my first D function (adapted from C), and had to replace all my 'and' 'or' and 'not's with the arcane &&, ||, and ! from prehistoric C to get it to compile. iso646.h has been a part of C for several years. Perl, C++ and possibly other languages have all adopted 'and', 'or', and 'not' as part of their grammar. I write software that will be maintained by non-programmers (mathematicians, who would prefer that I use Fortran). Lots of funny symbols in source code (like && || !) make it difficult to read for the non-immersed (ah, who am I kidding, I even have trouble reading it now and then). Is there any future to D incluing the logical operators in English, as opposed to &!|%'ish? (I didn't mention it, but 'mod' might also be a good (easy for non-programmers to understand) substitute for '%'.) David+1 After 20 years of C/C++ my use of && and || was pretty instinctual, but after just a few months of working with Python on the side I found I started typing 'and' and 'or' without thinking about it. It makes complicated expressions more readable and would fit in great with D's more "modern" look. As noted before, I'm also in favor of allowing 'in' to replace ';' in foreach statements. --bb
Nov 07 2006
Ary Manzana wrote:Bill Baxter escribió:Well.. I'm an spanish programmer: My code is written using Spanish terms like "valor" vs "value", "irSiguiente()" vs "goNext()"... the best of algebra symbology is the language independence: [x..y] vs "Between x and y" x < y vs "x less than y" a.b vs "the b of a" (Director Lingo used this sintax) (a)b vs "cast b to a" a = b vs "set value of a to value of b" a == b vs "a equals to b" { stamens } vs "begin stamens end" I'm forced to use the basic english programming syntax: if/else, while, for, foreach, public, private, protected,.... PLEASE: STOP IMPOSING ENGLISH TO THE WORLD... you are not the only one programming here. thanks AntonioDavid Qualls wrote:I guess the main reason to stick with symbols is some compatibility with C/C++ source code. Anyway, I also like the idea of words instead of symbols. You benefit from readability and it's also much more simpler to type (i.e. you don't you shift or look in a new keyboar for them).I just compiled my first D function (adapted from C), and had to replace all my 'and' 'or' and 'not's with the arcane &&, ||, and ! from prehistoric C to get it to compile. iso646.h has been a part of C for several years. Perl, C++ and possibly other languages have all adopted 'and', 'or', and 'not' as part of their grammar. I write software that will be maintained by non-programmers (mathematicians, who would prefer that I use Fortran). Lots of funny symbols in source code (like && || !) make it difficult to read for the non-immersed (ah, who am I kidding, I even have trouble reading it now and then). Is there any future to D incluing the logical operators in English, as opposed to &!|%'ish? (I didn't mention it, but 'mod' might also be a good (easy for non-programmers to understand) substitute for '%'.) David+1 After 20 years of C/C++ my use of && and || was pretty instinctual, but after just a few months of working with Python on the side I found I started typing 'and' and 'or' without thinking about it. It makes complicated expressions more readable and would fit in great with D's more "modern" look. As noted before, I'm also in favor of allowing 'in' to replace ';' in foreach statements. --bb
Nov 23 2006
I'm forced to use the basic english programming syntax: if/else, while, for, foreach, public, private, protected,.... PLEASE: STOP IMPOSING ENGLISH TO THE WORLD... you are not the only one programming here. thanks AntonioAs for me: Please start imposing english to the world (English isn't my mother language btw.) Imposing it only as the second language of course. Diversity of thought is, most of the time, a good thing :) I kinda hate language barriers. Thus I totally agree with:the best of algebra symbology is the language independence:But it shouldn't be that difficult to startof a project on dsource which would enable the selection of different languages for these and alike:"valor" vs "value", "irSiguiente()" vs "goNext()"...It could even have a function to translate some of the algebra symbology.
Nov 23 2006
nobody_ wrote:"English is the most widely taught and understood language in the world, and sometimes is described as a lingua franca." - Wikipedia, http://en.wikipedia.org/wiki/English_language Thus for me (aside from being Aussie), English is the best choice, as having other people able to understand your code is the most important consideration when writing code... after all if you code isn't correct, someone else can fix it if they can understand it ;-)I'm forced to use the basic english programming syntax: if/else, while, for, foreach, public, private, protected,.... PLEASE: STOP IMPOSING ENGLISH TO THE WORLD... you are not the only one programming here. thanks AntonioAs for me: Please start imposing english to the world (English isn't my mother language btw.) Imposing it only as the second language of course. Diversity of thought is, most of the time, a good thing :) I kinda hate language barriers. Thus I totally agree with:It would be interesting to see how popular such a project is - I really have no idea how much non-native English programmers would prefer writing code in their own language if automatic conversion was possible. :-) Danthe best of algebra symbology is the language independence:But it shouldn't be that difficult to startof a project on dsource which would enable the selection of different languages for these and alike:"valor" vs "value", "irSiguiente()" vs "goNext()"...It could even have a function to translate some of the algebra symbology.
Nov 23 2006
Daniel Giddings wrote:nobody_ wrote:I'm not really interested: spanish coding using english keyword has a lot of advantadges: "value" or "class" are reserved words... "valor" and "clase" not... :-) Spanish programmer can use than english people can't (because the english version is reserved by the compiler) Mi queja se debe al hecho de que la gente piense que para que "sus matemáticos" puedan entender mejor el código, debería usarse una sintaxis "legible" en vez de una sintaxis "críptica"... presuponiendo que la sintaxis "legible" debe ser inglesa. Si el problema está en que programadores profanos deben usar un lenguaje de programación. La mejor opción es formarlos convenientemente. Si por alguna razón esto no es posible, lo mejor sería que el compilador admitiese el uso de "alias" para los símbolos y las palabras reservadas."English is the most widely taught and understood language in the world, and sometimes is described as a lingua franca." - Wikipedia, http://en.wikipedia.org/wiki/English_language Thus for me (aside from being Aussie), English is the best choice, as having other people able to understand your code is the most important consideration when writing code... after all if you code isn't correct, someone else can fix it if they can understand it ;-)I'm forced to use the basic english programming syntax: if/else, while, for, foreach, public, private, protected,.... PLEASE: STOP IMPOSING ENGLISH TO THE WORLD... you are not the only one programming here. thanks AntonioAs for me: Please start imposing english to the world (English isn't my mother language btw.) Imposing it only as the second language of course. Diversity of thought is, most of the time, a good thing :) I kinda hate language barriers. Thus I totally agree with:It would be interesting to see how popular such a project is - I really have no idea how much non-native English programmers would prefer writing code in their own language if automatic conversion was possible. :-) Danthe best of algebra symbology is the language independence:But it shouldn't be that difficult to startof a project on dsource which would enable the selection of different languages for these and alike:"valor" vs "value", "irSiguiente()" vs "goNext()"...It could even have a function to translate some of the algebra symbology.
Nov 23 2006
antonio escribió:Daniel Giddings wrote:I code in Spanish when it's going to be private code (seen only by my eyes), and in English otherwise. As for the other proposal, I disagree. I made a similar proposal about 4 years ago, but now I'm not for it.nobody_ wrote:I'm not really interested: spanish coding using english keyword has a lot of advantadges: "value" or "class" are reserved words... "valor" and "clase" not... :-) Spanish programmer can use than english people can't (because the english version is reserved by the compiler)"English is the most widely taught and understood language in the world, and sometimes is described as a lingua franca." - Wikipedia, http://en.wikipedia.org/wiki/English_language Thus for me (aside from being Aussie), English is the best choice, as having other people able to understand your code is the most important consideration when writing code... after all if you code isn't correct, someone else can fix it if they can understand it ;-)I'm forced to use the basic english programming syntax: if/else, while, for, foreach, public, private, protected,.... PLEASE: STOP IMPOSING ENGLISH TO THE WORLD... you are not the only one programming here. thanks AntonioAs for me: Please start imposing english to the world (English isn't my mother language btw.) Imposing it only as the second language of course. Diversity of thought is, most of the time, a good thing :) I kinda hate language barriers. Thus I totally agree with:It would be interesting to see how popular such a project is - I really have no idea how much non-native English programmers would prefer writing code in their own language if automatic conversion was possible. :-) Danthe best of algebra symbology is the language independence:But it shouldn't be that difficult to startof a project on dsource which would enable the selection of different languages for these and alike:"valor" vs "value", "irSiguiente()" vs "goNext()"...It could even have a function to translate some of the algebra symbology.Mi queja se debe al hecho de que la gente piense que para que "sus matemáticos" puedan entender mejor el código, debería usarse una sintaxis "legible" en vez de una sintaxis "críptica"... presuponiendo que la sintaxis "legible" debe ser inglesa. Si el problema está en que programadores profanos deben usar un lenguaje de programación. La mejor opción es formarlos convenientemente. Si por alguna razón esto no es posible, lo mejor sería que el compilador admitiese el uso de "alias" para los símbolos y las palabras reservadas.Hay dos razones para el uso de inglés. Primero, los primeros compiladores fueron hechos en los Estados Unidos, así que es normal que hayan usado inglés. A partirCarlos Santander wrote:antonio escribió:Daniel Giddings wrote:I code in Spanish when it's going to be private code (seen only by my eyes), and in English otherwise. As for the other proposal, I disagree. I made a similar proposal about 4 years ago, but now I'm not for it.nobody_ wrote:I'm not really interested: spanish coding using english keyword has a lot of advantadges: "value" or "class" are reserved words... "valor" and "clase" not... :-) Spanish programmer can use than english people can't (because the english version is reserved by the compiler)"English is the most widely taught and understood language in the world, and sometimes is described as a lingua franca." - Wikipedia, http://en.wikipedia.org/wiki/English_language Thus for me (aside from being Aussie), English is the best choice, as having other people able to understand your code is the most important consideration when writing code... after all if you code isn't correct, someone else can fix it if they can understand it ;-)I'm forced to use the basic english programming syntax: if/else, while, for, foreach, public, private, protected,.... PLEASE: STOP IMPOSING ENGLISH TO THE WORLD... you are not the only one programming here. thanks AntonioAs for me: Please start imposing english to the world (English isn't my mother language btw.) Imposing it only as the second language of course. Diversity of thought is, most of the time, a good thing :) I kinda hate language barriers. Thus I totally agree with:It would be interesting to see how popular such a project is - I really have no idea how much non-native English programmers would prefer writing code in their own language if automatic conversion was possible. :-) Danthe best of algebra symbology is the language independence:But it shouldn't be that difficult to startof a project on dsource which would enable the selection of different languages for these and alike:"valor" vs "value", "irSiguiente()" vs "goNext()"...It could even have a function to translate some of the algebra symbology.Mi queja se debe al hecho de que la gente piense que para que "sus matemáticos" puedan entender mejor el código, debería usarse una sintaxis "legible" en vez de una sintaxis "críptica"... presuponiendo que la sintaxis "legible" debe ser inglesa. Si el problema está en que programadores profanos deben usar un lenguaje de programación. La mejor opción es formarlos convenientemente. Si por alguna razón esto no es posible, lo mejor sería que el compilador admitiese el uso de "alias" para los símbolos y las palabras reservadas.Hay dos razones para el uso de inglés. Primero, los primeros compiladores fueron hechos en los Estados Unidos, así que es normal queGeorg Wrede escribió:Carlos Santander wrote:¿Y qué tal el Esperanto? :-P Birdo birdo = nova Birdo(); birdo.manÄi(); birdo.flugi(); Birdo birdido = birdo.seksumiKun(aliaBirdo); ktp. Al menos es más claro que el Finlandess, jejeje. Sólo quiero dar mi opinión: a mi tampoco me gusta que el inglés empiece a estar en todas partes. Lo que se deberÃa hacer es que se pueda escribir en castellano "si" en lugar de "if" y "mientras" en lugar de "while", pero también habrÃa que hacer que a variables, clases y métodos se les pueda dar otro nombre en otro lenguaje, con metainformación. Por ejemplo: traducción("en", "getNext") nada damePróximo() { } o algo asÃ. Se podrÃa ver la documentación de una librerÃa en el idioma que quieras (como ahora, pero los nombres de las funciones también estarÃan traducidas). Obviamente es mucho trabajo, pero creo que valdrÃa la pena. De todas maneras lo mejor serÃa que usemos un lenguaje en común que sea fácil de entender para todos, y sobre todo neutral (de ningún paÃs)... y bueno, mi opinión es que el Esperanto serÃa el candidato perfecto (al igual que para hablar un idioma), pero es sólo mi opinión. Äœis, Aryantonio escribió:Tienes razón! lukumäärä rivejä; kirjoitus jutut; jutut = lueTiedosto(käyttäjänHaluama); rivejä = säännöllinenLausekeHaku(jutut, "varakas", "i"); tulosta("Rikkaiden määrä ", rivejä); Yo no quiero programar en mi idioma (el Finlandes).Daniel Giddings wrote:I code in Spanish when it's going to be private code (seen only by my eyes), and in English otherwise. As for the other proposal, I disagree. I made a similar proposal about 4 years ago, but now I'm not for it.nobody_ wrote:I'm not really interested: spanish coding using english keyword has a lot of advantadges: "value" or "class" are reserved words... "valor" and "clase" not... :-) Spanish programmer can use than english people can't (because the english version is reserved by the compiler)"English is the most widely taught and understood language in the world, and sometimes is described as a lingua franca." - Wikipedia, http://en.wikipedia.org/wiki/English_language Thus for me (aside from being Aussie), English is the best choice, as having other people able to understand your code is the most important consideration when writing code... after all if you code isn't correct, someone else can fix it if they can understand it ;-)I'm forced to use the basic english programming syntax: if/else, while, for, foreach, public, private, protected,.... PLEASE: STOP IMPOSING ENGLISH TO THE WORLD... you are not the only one programming here. thanks AntonioAs for me: Please start imposing english to the world (English isn't my mother language btw.) Imposing it only as the second language of course. Diversity of thought is, most of the time, a good thing :) I kinda hate language barriers. Thus I totally agree with:It would be interesting to see how popular such a project is - I really have no idea how much non-native English programmers would prefer writing code in their own language if automatic conversion was possible. :-) Danthe best of algebra symbology is the language independence:But it shouldn't be that difficult to startof a project on dsource which would enable the selection of different languages for these and alike:"valor" vs "value", "irSiguiente()" vs "goNext()"...It could even have a function to translate some of the algebra symbology.Mi queja se debe al hecho de que la gente piense que para que "sus matemáticos" puedan entender mejor el código, deberÃa usarse una sintaxis "legible" en vez de una sintaxis "crÃptica"... presuponiendo que la sintaxis "legible" debe ser inglesa. Si el problema está en que programadores profanos deben usar un lenguaje de programación. La mejor opción es formarlos convenientemente. Si por alguna razón esto no es posible, lo mejor serÃa que el compilador admitiese el uso de "alias" para los sÃmbolos y las palabras reservadas.Hay dos razones para el uso de inglés. Primero, los primeros compiladores fueron hechos en los Estados Unidos, asà que es normal que hayan usado inglés. A partir de ahÃ, los nuevos lenguajes evolucionaron a partir de los originales, y obviamente mantuvieron sus palabras reservadas. Además, se volvió natural en todo el mundo entender lo que esas palabras significaban. Pero la razón más importante es la que dijo Daniel: el inglés es en realidad el idioma universal de nuestra era, asà que hay que saber aceptar eso. Un efecto de eso es que, a pesar de lo que dije en el primer punto, Ruby fue hecho por un japonés, pero a pesar de eso usa palabras inglesas. Y asà muchos otros. De modo que ahora la cuestión es que no es que sea una sintaxis "legible" sino que es el mÃnimo común denominador, y además facilita la transición desde otros lenguajes.Realmente quisiera devolver la conversación al inglés. A mà me molesta cuando empiezan a escribir en alemán o algún otro idioma, asà que no quiero causar la misma molestia.Nov 23 2006Ary Manzana escribió:¿Y qué tal el Esperanto? :-P Birdo birdo = nova Birdo(); birdo.manÄi(); birdo.flugi(); Birdo birdido = birdo.seksumiKun(aliaBirdo); ktp. Al menos es más claro que el Finlandess, jejeje. Sólo quiero dar mi opinión: a mi tampoco me gusta que el inglés empiece a estar en todas partes. Lo que se deberÃa hacer es que se pueda escribir en castellano "si" en lugar de "if" y "mientras" en lugar de "while", pero también habrÃa que hacer que a variables, clases y métodos se les pueda dar otro nombre en otro lenguaje, con metainformación. Por ejemplo: traducción("en", "getNext") nada damePróximo() { } o algo asÃ. Se podrÃa ver la documentación de una librerÃa en el idioma que quieras (como ahora, pero los nombres de las funciones también estarÃan traducidas). Obviamente es mucho trabajo, pero creo que valdrÃa la pena. De todas maneras lo mejor serÃa que usemos un lenguaje en común que sea fácil de entender para todos, y sobre todo neutral (de ningún paÃs)... y bueno, mi opinión es que el Esperanto serÃa el candidato perfecto (al igual que para hablar un idioma), pero es sólo mi opinión. Äœis, AryEso es peor. Es como decir, un francés y un inglés quieren hacer negocio, asà que deciden negociar en árabe, que ninguno de los dos sabe, porque es neutral. Es un placer leer y escribir en español, ¿pero podemos volver al inglés o llevar esto a otro lado? -- Carlos Santander BernalNov 23 2006Ary Manzana wrote:Georg Wrede escribió:Jes! Bonvolu!Carlos Santander wrote:¿Y qué tal el Esperanto? :-P Birdo birdo = nova Birdo(); birdo.manÄi(); birdo.flugi(); Birdo birdido = birdo.seksumiKun(aliaBirdo); ktp.antonio escribió:Tienes razón! lukumäärä rivejä; kirjoitus jutut; jutut = lueTiedosto(käyttäjänHaluama); rivejä = säännöllinenLausekeHaku(jutut, "varakas", "i"); tulosta("Rikkaiden määrä ", rivejä); Yo no quiero programar en mi idioma (el Finlandes).Daniel Giddings wrote:I code in Spanish when it's going to be private code (seen only by my eyes), and in English otherwise. As for the other proposal, I disagree. I made a similar proposal about 4 years ago, but now I'm not for it.nobody_ wrote:I'm not really interested: spanish coding using english keyword has a lot of advantadges: "value" or "class" are reserved words... "valor" and "clase" not... :-) Spanish programmer can use than english people can't (because the english version is reserved by the compiler)"English is the most widely taught and understood language in the world, and sometimes is described as a lingua franca." - Wikipedia, http://en.wikipedia.org/wiki/English_language Thus for me (aside from being Aussie), English is the best choice, as having other people able to understand your code is the most important consideration when writing code... after all if you code isn't correct, someone else can fix it if they can understand it ;-)I'm forced to use the basic english programming syntax: if/else, while, for, foreach, public, private, protected,.... PLEASE: STOP IMPOSING ENGLISH TO THE WORLD... you are not the only one programming here. thanks AntonioAs for me: Please start imposing english to the world (English isn't my mother language btw.) Imposing it only as the second language of course. Diversity of thought is, most of the time, a good thing :) I kinda hate language barriers. Thus I totally agree with:It would be interesting to see how popular such a project is - I really have no idea how much non-native English programmers would prefer writing code in their own language if automatic conversion was possible. :-) Danthe best of algebra symbology is the language independence:But it shouldn't be that difficult to startof a project on dsource which would enable the selection of different languages for these and alike:"valor" vs "value", "irSiguiente()" vs "goNext()"...It could even have a function to translate some of the algebra symbology.Mi queja se debe al hecho de que la gente piense que para que "sus matemáticos" puedan entender mejor el código, deberÃa usarse una sintaxis "legible" en vez de una sintaxis "crÃptica"... presuponiendo que la sintaxis "legible" debe ser inglesa. Si el problema está en que programadores profanos deben usar un lenguaje de programación. La mejor opción es formarlos convenientemente. Si por alguna razón esto no es posible, lo mejor serÃa que el compilador admitiese el uso de "alias" para los sÃmbolos y las palabras reservadas.Hay dos razones para el uso de inglés. Primero, los primeros compiladores fueron hechos en los Estados Unidos, asà que es normal que hayan usado inglés. A partir de ahÃ, los nuevos lenguajes evolucionaron a partir de los originales, y obviamente mantuvieron sus palabras reservadas. Además, se volvió natural en todo el mundo entender lo que esas palabras significaban. Pero la razón más importante es la que dijo Daniel: el inglés es en realidad el idioma universal de nuestra era, asà que hay que saber aceptar eso. Un efecto de eso es que, a pesar de lo que dije en el primer punto, Ruby fue hecho por un japonés, pero a pesar de eso usa palabras inglesas. Y asà muchos otros. De modo que ahora la cuestión es que no es que sea una sintaxis "legible" sino que es el mÃnimo común denominador, y además facilita la transición desde otros lenguajes.Realmente quisiera devolver la conversación al inglés. A mà me molesta cuando empiezan a escribir en alemán o algún otro idioma, asà que no quiero causar la misma molestia.Nov 24 2006Mi queja se debe al hecho de que la gente piense que para que "sus matemáticos" puedan entender mejor el código, debería usarse una sintaxis "legible" en vez de una sintaxis "críptica"... presuponiendo que la sintaxis "legible" debe ser inglesa. Si el problema está en que programadores profanos deben usar un lenguaje de programación. La mejor opción es formarlos convenientemente. Si por alguna razón esto no es posible, lo mejor sería que el compilador admitiese el uso de "alias" para los símbolos y las palabras reservadas.Why do you reply in spanish?Nov 25 2006Why do you reply in spanish?If anybody replied in my mother language, and I would like to reply, I would reply in english and translate the the relevant parts off the original post. Because I think most people here at least understand english.Nov 25 2006nobody_ wrote:Because I have something to say... but not enough english level to express it... Sorry :-( Just my faultMi queja se debe al hecho de que la gente piense que para que "sus matemáticos" puedan entender mejor el código, debería usarse una sintaxis "legible" en vez de una sintaxis "críptica"... presuponiendo que la sintaxis "legible" debe ser inglesa. Si el problema está en que programadores profanos deben usar un lenguaje de programación. La mejor opción es formarlos convenientemente. Si por alguna razón esto no es posible, lo mejor sería que el compilador admitiese el uso de "alias" para los símbolos y las palabras reservadas.Why do you reply in spanish?Nov 26 2006antonio wrote:I'm forced to use the basic english programming syntax: if/else, while, for, foreach, public, private, protected,.... PLEASE: STOP IMPOSING ENGLISH TO THE WORLD... you are not the only one programming here. thanks AntonioWell I say *don't* stop imposing english to the world. Hum, "imposing" is a strong word here, I wouldn't go out of my way to force another to use english, but I would like them to, and I wouldn't help in efforts to the contrary. Why? The value of the network is the square of the of numbers of users. The less language barriers and segregation the better, the more people that know and use a common language the better. This is a subjective opinion that I know not all share as much as I. I have been said to have more of the "citizen of the world" mentality than most people. (I'm portuguese btw, my natural language being Portuguese) Second, English is the prime candidate for that common language, because it is one of the most widely spoken, *in* the more important contexts (books, movies, information, nations). And also (in the context of programming) *especially* because it is more succinct and expressive that most other languages. -- Bruno Medeiros - MSc in CS/E student http://www.prowiki.org/wiki4d/wiki.cgi?BrunoMedeiros#DNov 24 2006Bruno Medeiros wrote:antonio wrote:Simplicity in arguments forced million people die in Holocaust :-/. Let time and people defend and propose their solutions... natural evolution is better than forced imposition. I defend, now, && because is not "and" or "y"... :-)I'm forced to use the basic english programming syntax: if/else, while, for, foreach, public, private, protected,.... PLEASE: STOP IMPOSING ENGLISH TO THE WORLD... you are not the only one programming here. thanks AntonioWell I say *don't* stop imposing english to the world. Hum, "imposing" is a strong word here, I wouldn't go out of my way to force another to use english, but I would like them to, and I wouldn't help in efforts to the contrary. Why? The value of the network is the square of the of numbers of users. The less language barriers and segregation the better, the more people that know and use a common language the better. This is a subjective opinion that I know not all share as much as I. I have been said to have more of the "citizen of the world" mentality than most people. (I'm portuguese btw, my natural language being Portuguese) Second, English is the prime candidate for that common language, because it is one of the most widely spoken, *in* the more important contexts (books, movies, information, nations). And also (in the context of programming) *especially* because it is more succinct and expressive that most other languages.Nov 25 2006antonio wrote:Bruno Medeiros wrote:antonio wrote:Cool! Thread's officially over now! http://en.wikipedia.org/wiki/Godwin's_law --bbSimplicity in arguments forced million people die in Holocaust :-/. Let time and people defend and propose their solutions... natural evolution is better than forced imposition. I defend, now, && because is not "and" or "y"... :-)Nov 25 2006Bill Baxter wrote:antonio wrote:O_oBruno Medeiros wrote:antonio wrote:Simplicity in arguments forced million people die in Holocaust :-/. Let time and people defend and propose their solutions... natural evolution is better than forced imposition. I defend, now, && because is not "and" or "y"... :-)Cool! Thread's officially over now! http://en.wikipedia.org/wiki/Godwin's_law --bbHell yeah... and it came surprisingly fast, Blitzkrieg style :P -- Bruno Medeiros - MSc in CS/E student http://www.prowiki.org/wiki4d/wiki.cgi?BrunoMedeiros#DNov 28 2006Bruno Medeiros wrote:Bill Baxter wrote::-) Now we just need someone to post a Nazi comparison to the global warming thread. ;-) I'd do it but I just can't think of a good angle... --bbantonio wrote:O_oBruno Medeiros wrote:antonio wrote:Simplicity in arguments forced million people die in Holocaust :-/. Let time and people defend and propose their solutions... natural evolution is better than forced imposition. I defend, now, && because is not "and" or "y"... :-)Cool! Thread's officially over now! http://en.wikipedia.org/wiki/Godwin's_law --bbHell yeah... and it came surprisingly fast, Blitzkrieg style :PNov 28 2006On Tue, 28 Nov 2006 18:04:03 -0800, Bill Baxter <dnewsgroup billbaxter.com> wrote:Bruno Medeiros wrote:I thought it was over... until you brought it up here. :D -JJRBill Baxter wrote::-) Now we just need someone to post a Nazi comparison to the global warming thread. ;-) I'd do it but I just can't think of a good angle... --bbantonio wrote:O_oBruno Medeiros wrote:antonio wrote:Simplicity in arguments forced million people die in Holocaust :-/. Let time and people defend and propose their solutions... natural evolution is better than forced imposition. I defend, now, && because is not "and" or "y"... :-)Cool! Thread's officially over now! http://en.wikipedia.org/wiki/Godwin's_law --bbHell yeah... and it came surprisingly fast, Blitzkrieg style :PNov 28 2006"antonio" <antonio abrevia.net> wrote in message news:ekajgv$1ogg$1 digitaldaemon.com...Bruno Medeiros wrote:Lol, talk about simple arguments :D He explained his stance quite well, in contrary to your 'argument'? I too really don't care about nationality when it comes to programming languages :D That said, I too want keep using && because it has an even more broader audience.antonio wrote:Simplicity in arguments forced million people die in Holocaust :-/.I'm forced to use the basic english programming syntax: if/else, while, for, foreach, public, private, protected,.... PLEASE: STOP IMPOSING ENGLISH TO THE WORLD... you are not the only one programming here. thanks AntonioWell I say *don't* stop imposing english to the world. Hum, "imposing" is a strong word here, I wouldn't go out of my way to force another to use english, but I would like them to, and I wouldn't help in efforts to the contrary. Why? The value of the network is the square of the of numbers of users. The less language barriers and segregation the better, the more people that know and use a common language the better. This is a subjective opinion that I know not all share as much as I. I have been said to have more of the "citizen of the world" mentality than most people. (I'm portuguese btw, my natural language being Portuguese) Second, English is the prime candidate for that common language, because it is one of the most widely spoken, *in* the more important contexts (books, movies, information, nations). And also (in the context of programming) *especially* because it is more succinct and expressive that most other languages.Nov 25 2006antonio wrote:Ary Manzana wrote:I've got a lot of sympathy to this. I'm really surprised that I don't hear this view more often. I'm currently maintaining some code that was written in Italian, modified in German, and now there's some English. It's a pig's breakfast. But still... My feeling is... do not program in a language which you are not fluent in. I prefer to try to read Italian written by a native speaker, than a garbled attempt at English -- it's horrible to read code that was written by someone who was putting more energy into translation, than into thinking about their programming problem. In the open-source Fast Fourier Transform project (www.fftw.org), there's a file with code written in Latin. :->Bill Baxter escribió:Well.. I'm an spanish programmer: My code is written using Spanish terms like "valor" vs "value", "irSiguiente()" vs "goNext()"... the best of algebra symbology is the language independence: [x..y] vs "Between x and y" x < y vs "x less than y" a.b vs "the b of a" (Director Lingo used this sintax) (a)b vs "cast b to a" a = b vs "set value of a to value of b" a == b vs "a equals to b" { stamens } vs "begin stamens end" I'm forced to use the basic english programming syntax: if/else, while, for, foreach, public, private, protected,.... PLEASE: STOP IMPOSING ENGLISH TO THE WORLD... you are not the only one programming here.David Qualls wrote:I guess the main reason to stick with symbols is some compatibility with C/C++ source code. Anyway, I also like the idea of words instead of symbols. You benefit from readability and it's also much more simpler to type (i.e. you don't you shift or look in a new keyboar for them).I just compiled my first D function (adapted from C), and had to replace all my 'and' 'or' and 'not's with the arcane &&, ||, and ! from prehistoric C to get it to compile. iso646.h has been a part of C for several years. Perl, C++ and possibly other languages have all adopted 'and', 'or', and 'not' as part of their grammar. I write software that will be maintained by non-programmers (mathematicians, who would prefer that I use Fortran). Lots of funny symbols in source code (like && || !) make it difficult to read for the non-immersed (ah, who am I kidding, I even have trouble reading it now and then). Is there any future to D incluing the logical operators in English, as opposed to &!|%'ish? (I didn't mention it, but 'mod' might also be a good (easy for non-programmers to understand) substitute for '%'.) David+1 After 20 years of C/C++ my use of && and || was pretty instinctual, but after just a few months of working with Python on the side I found I started typing 'and' and 'or' without thinking about it. It makes complicated expressions more readable and would fit in great with D's more "modern" look. As noted before, I'm also in favor of allowing 'in' to replace ';' in foreach statements. --bbNov 24 2006"Don Clugston" <dac nospam.com.au> wrote in message news:ek71e0$1ako$1 digitaldaemon.com...antonio wrote:I suppose Latin would be great if you want language neutrality. Might be politically correct, but not very practical. I hate to be the bigot here, but let's face it. As far as international languages go, English is a standard. Sorry, but it's not my fault. It's just the way it is. However, if I had it my way we would all be speaking a simpler language. I hate English. A written language should be completely phonetic and orthogonal. There shouldn't be silent letters, myriads of exceptions to rules of thumb, and ridiculous non-phonetic pronunciations. Back to the topic, adding "and" and "or" wouldn't replace the symbolic representation. The symbolic representation would still be valid, so I see this as a benign addition to D. It seems it would make a lot of people happy, and would be easy to do, so I am not opposed to it. -CraigAry Manzana wrote:I've got a lot of sympathy to this. I'm really surprised that I don't hear this view more often. I'm currently maintaining some code that was written in Italian, modified in German, and now there's some English. It's a pig's breakfast. But still... My feeling is... do not program in a language which you are not fluent in. I prefer to try to read Italian written by a native speaker, than a garbled attempt at English -- it's horrible to read code that was written by someone who was putting more energy into translation, than into thinking about their programming problem. In the open-source Fast Fourier Transform project (www.fftw.org), there's a file with code written in Latin. :->Bill Baxter escribió:Well.. I'm an spanish programmer: My code is written using Spanish terms like "valor" vs "value", "irSiguiente()" vs "goNext()"... the best of algebra symbology is the language independence: [x..y] vs "Between x and y" x < y vs "x less than y" a.b vs "the b of a" (Director Lingo used this sintax) (a)b vs "cast b to a" a = b vs "set value of a to value of b" a == b vs "a equals to b" { stamens } vs "begin stamens end" I'm forced to use the basic english programming syntax: if/else, while, for, foreach, public, private, protected,.... PLEASE: STOP IMPOSING ENGLISH TO THE WORLD... you are not the only one programming here.David Qualls wrote:I guess the main reason to stick with symbols is some compatibility with C/C++ source code. Anyway, I also like the idea of words instead of symbols. You benefit from readability and it's also much more simpler to type (i.e. you don't you shift or look in a new keyboar for them).I just compiled my first D function (adapted from C), and had to replace all my 'and' 'or' and 'not's with the arcane &&, ||, and ! from prehistoric C to get it to compile. iso646.h has been a part of C for several years. Perl, C++ and possibly other languages have all adopted 'and', 'or', and 'not' as part of their grammar. I write software that will be maintained by non-programmers (mathematicians, who would prefer that I use Fortran). Lots of funny symbols in source code (like && || !) make it difficult to read for the non-immersed (ah, who am I kidding, I even have trouble reading it now and then). Is there any future to D incluing the logical operators in English, as opposed to &!|%'ish? (I didn't mention it, but 'mod' might also be a good (easy for non-programmers to understand) substitute for '%'.) David+1 After 20 years of C/C++ my use of && and || was pretty instinctual, but after just a few months of working with Python on the side I found I started typing 'and' and 'or' without thinking about it. It makes complicated expressions more readable and would fit in great with D's more "modern" look. As noted before, I'm also in favor of allowing 'in' to replace ';' in foreach statements. --bbNov 27 2006Craig Black wrote: ard. Sorry, but it's not my fault. It's just the way it is.However, if I had it my way we would all be speaking a simpler language. I hate English. A written language should be completely phonetic and orthogonal. There shouldn't be silent letters, myriads of exceptions to rules of thumb, and ridiculous non-phonetic pronunciations.Esperanto? -- Lars Ivar Igesund blog at http://larsivi.net DSource & #D: larsiviNov 27 2006== Quote from Craig Black (cblack ara.com)'s articleI suppose Latin would be great if you want language neutrality.Might bepolitically correct, but not very practical. I hate to be thebigot here,but let's face it. As far as international languages go,English is astandard. Sorry, but it's not my fault. It's just the way itis.However, if I had it my way we would all be speaking a simplerlanguage. Ihate English. A written language should be completely phoneticandorthogonal. There shouldn't be silent letters, myriads ofexceptions torules of thumb, and ridiculous non-phonetic pronunciations. Back to the topic, adding "and" and "or" wouldn't replace thesymbolicrepresentation. The symbolic representation would still bevalid, so I seethis as a benign addition to D. It seems it would make a lotof peoplehappy, and would be easy to do, so I am not opposed to it. -CraigThanks, Craig. This subject seems to have taken on a life of it's own. The simple summary is as you put it, 'and', 'or', etc would not *REPLACE* &&, ||, etc., just be available to those who found them easier to use. Just as in C and C++. I don't find the many proposals to "internationalize" the D language very compelling. Face it, D is not trying to become the new rubbery language. It's basically an enhanced and improved C++. If niche groups did successfully translate the C++ language into other nationalities, perhaps those same niche groups could do the same with D. Of course, it wouldn't be D then; just like C in Latin is not *really* C (at least I don't see anything in the standard that allows the keywords to be replaced by their Latin equivalents). There was a reason C and C++ caved, and adopted English operators. I reckon that for the very same reason, D will be hindered from a place of prominence if it does not adopt English operators. Those who want them won't find them in D, and will move on. Perhaps a few more BRIEF opinions regarding whether the standard English operators should be adopted within the D language would be enough to send the think-tank to their Cave Of Contemplation to debate it amongst themselves. I, for one, am eager to hear what they have to say. I don't recall seeing Walter weigh-in on this discussion. DavidNov 27 2006-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 David Qualls schrieb am 2006-11-28:Perhaps a few more BRIEF opinions regarding whether the standard English operators should be adopted within the D language would be enough to send the think-tank to their Cave Of Contemplation to debate it amongst themselves.Adding addtional keywords that have exactly the same functions like already present keywords (actually keytokens) seems to be against D's spirit. The more general issue: Iv'e checked 10 random C/C++ projects (taken from Gentoo's portage) and none of them used iso646.h's alternative spellings. Thomas -----BEGIN PGP SIGNATURE----- iD8DBQFFa+7ZLK5blCcjpWoRAgQdAJ0UBatA3czG0A5+wZdMwcl50q/39gCghILf fpEBz2SVezekjI+rWqpibfE= =nQ5N -----END PGP SIGNATURE-----Nov 27 2006Thomas Kuehne wrote:-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 David Qualls schrieb am 2006-11-28:Hang on... doesn't that header define macros that look like normal prefix functions? You're comparing this:Perhaps a few more BRIEF opinions regarding whether the standard English operators should be adopted within the D language would be enough to send the think-tank to their Cave Of Contemplation to debate it amongst themselves.Adding addtional keywords that have exactly the same functions like already present keywords (actually keytokens) seems to be against D's spirit. The more general issue: Iv'e checked 10 random C/C++ projects (taken from Gentoo's portage) and none of them used iso646.h's alternative spellings. Thomas -----BEGIN PGP SIGNATURE----- iD8DBQFFa+7ZLK5blCcjpWoRAgQdAJ0UBatA3czG0A5+wZdMwcl50q/39gCghILf fpEBz2SVezekjI+rWqpibfE= =nQ5N -----END PGP SIGNATURE-----(expr1 and expr2) or (expr2 and expr3)with this:or(and(expr1, expr2), and(expr2, expr3))Given the choice between the existing boolean operators and the second lot, I'd choose the existing ones any day. Given the choice between the existing operators and the first lot, I'd chose the first lot. It's like the referendum regarding Australia becoming a republic: people voted against it, and the government toted that out saying "see, the public don't WANT to separate from England!" Fact was, most polls showed that people DID want to become a republic. What they had a problem with was the nasty little condition the government added: the PM would chose the president, NOT the people. What would be the point of even *having* a president if we can't choose who it is? Hence, given the choice between the way things are now, and a half-arsed token offering that leaves a bad taste in your mouth, we chose the lesser of two evils. Blech; I'm rambling. Sorry about that :) -- DanielNov 28 2006Daniel Keep wrote:Thomas Kuehne wrote:No. They actually alias '&&' with 'and'. Macros are a wonderful (read: terrifying) thing.-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 David Qualls schrieb am 2006-11-28:Hang on... doesn't that header define macros that look like normal prefix functions?Perhaps a few more BRIEF opinions regarding whether the standard English operators should be adopted within the D language would be enough to send the think-tank to their Cave Of Contemplation to debate it amongst themselves.Adding addtional keywords that have exactly the same functions like already present keywords (actually keytokens) seems to be against D's spirit. The more general issue: Iv'e checked 10 random C/C++ projects (taken from Gentoo's portage) and none of them used iso646.h's alternative spellings. Thomas -----BEGIN PGP SIGNATURE----- iD8DBQFFa+7ZLK5blCcjpWoRAgQdAJ0UBatA3czG0A5+wZdMwcl50q/39gCghILf fpEBz2SVezekjI+rWqpibfE= =nQ5N -----END PGP SIGNATURE-----You're comparing this: > (expr1 and expr2) or (expr2 and expr3) with this: > or(and(expr1, expr2), and(expr2, expr3)) Given the choice between the existing boolean operators and the second lot, I'd choose the existing ones any day. Given the choice between the existing operators and the first lot, I'd chose the first lot.Then you're in luck, so long as you're using C/C++ :-) SeanNov 28 2006Daniel Keep wrote:Thomas Kuehne wrote:[snip]-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 David Qualls schrieb am 2006-11-28:Hang on... doesn't that header define macros that look like normal prefix functions? You're comparing this: > (expr1 and expr2) or (expr2 and expr3) with this: > or(and(expr1, expr2), and(expr2, expr3))Perhaps a few more BRIEF opinions regarding whether the standard English operators should be adopted within the D language would be enough to send the think-tank to their Cave Of Contemplation to debate it amongst themselves.Adding addtional keywords that have exactly the same functions like already present keywords (actually keytokens) seems to be against D's spirit. The more general issue: Iv'e checked 10 random C/C++ projects (taken from Gentoo's portage) and none of them used iso646.h's alternative spellings. Thomas -----BEGIN PGP SIGNATURE----- iD8DBQFFa+7ZLK5blCcjpWoRAgQdAJ0UBatA3czG0A5+wZdMwcl50q/39gCghILf fpEBz2SVezekjI+rWqpibfE= =nQ5N -----END PGP SIGNATURE-----Blech; I'm rambling. Sorry about that :)And not doing your homework either. :-) A rudimentary google search turns up: #define and && [keyword in C++] #define and_eq &= [keyword in C++] #define bitand & [keyword in C++] #define bitor | [keyword in C++] #define compl ~ [keyword in C++] #define not ! [keyword in C++] #define not_eq != [keyword in C++] #define or || [keyword in C++] #define or_eq |= [keyword in C++] #define xor ^ [keyword in C++] #define xor_eq ^= [keyword in C++] So, no, iso464.h is not about prefix operators. Just some simple #defines. Interesting story about Australia not becoming a republic though. :-) --bbNov 28 2006Bill Baxter wrote:Daniel Keep wrote:Blech. Don't mind me, then. In my defense, I didn't even know that header existed until I read this thread :PThomas Kuehne wrote:[snip]-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 David Qualls schrieb am 2006-11-28:Hang on... doesn't that header define macros that look like normal prefix functions? You're comparing this: > (expr1 and expr2) or (expr2 and expr3) with this: > or(and(expr1, expr2), and(expr2, expr3))Perhaps a few more BRIEF opinions regarding whether the standard English operators should be adopted within the D language would be enough to send the think-tank to their Cave Of Contemplation to debate it amongst themselves.Adding addtional keywords that have exactly the same functions like already present keywords (actually keytokens) seems to be against D's spirit. The more general issue: Iv'e checked 10 random C/C++ projects (taken from Gentoo's portage) and none of them used iso646.h's alternative spellings. Thomas -----BEGIN PGP SIGNATURE----- iD8DBQFFa+7ZLK5blCcjpWoRAgQdAJ0UBatA3czG0A5+wZdMwcl50q/39gCghILf fpEBz2SVezekjI+rWqpibfE= =nQ5N -----END PGP SIGNATURE-----Blech; I'm rambling. Sorry about that :)And not doing your homework either. :-) A rudimentary google search turns up: #define and && [keyword in C++] #define and_eq &= [keyword in C++] #define bitand & [keyword in C++] #define bitor | [keyword in C++] #define compl ~ [keyword in C++] #define not ! [keyword in C++] #define not_eq != [keyword in C++] #define or || [keyword in C++] #define or_eq |= [keyword in C++] #define xor ^ [keyword in C++] #define xor_eq ^= [keyword in C++] So, no, iso464.h is not about prefix operators. Just some simple #defines.Interesting story about Australia not becoming a republic though. :-) --bbBloody John Howard. I'd vote against him if the alternative wasn't worse :( -- DanielNov 28 2006Daniel Keep wrote:Bill Baxter wrote:Most dishonest politician I know of. I'm not going back to Oz until he's gone.Daniel Keep wrote:Interesting story about Australia not becoming a republic though. :-) --bbBloody John Howard. I'd vote against him if the alternative wasn't worse :(Nov 30 2006Bill Baxter wrote:David Qualls wrote:After 20 years of C/C++ my use of && and || was pretty instinctual, but after just a few months of working with Python on the side I found I started typing 'and' and 'or' without thinking about it.I think my meaning wasn't so clear so let me rephrase. It took no time to get used to 'and/or' when learning python. I don't recall ever mistakenly using '&&' in my first few python attempts. But what happened after a few months (and continues to today) is that I sometimes type 'and/or' in *C++* code (and now *D* too) when I mean &&/||. I think it's just because in my head I'm *thinking* 'if this and that' as I type. My brain recognizes 'and' as a legal keyword from somewhere and so my fingers type it. Unfortunately, if && and || are to be eliminated wholesale, the benefit will be seen as too small to be worth the pain of fixing all old code. Furthermore Walter believes that C/C++ syntax must be good enough or it wouldn't have survived so long (or something like that). And he believes that D should look and behave like C/C++ as much as possible to ease the transition for C/C++ refugees (hence the decision to not fix used wherever possible instead of new keywords (hence we have ':' showing up everywhere for all kinds of different purposes, and "static" with even more meanings than in C++). It could be possible to add 'and' and 'or' as _synonyms_, but that smacks as too many ways to do the same thing, and adds two keywords for something for which there is already another way to do it. It doesn't let you do or express anything you couldn't before. So in short, it's pretty hopeless. But I agree it would make the code more readable and make overall for a more aesthetically pleasing language. Maybe it could be considered for a backwards-incompatible D 2.0. Maybe D 2.0 will have a way to redefine or alias keywords so you could just "import std.english_keywords" to get that functionality. The problem with that will be that Walter really likes for D to be easy to parse, and part of that is being able to recognize tokens as keywords immediately without any special complicated logic. But I'm with you. It would be nice to see in D 2.0. One thing the NumPy folks did as they made lots of changes prior to 1.0 was to keep a 'convertCode' script up to date with each change. For most cases just running 'convertCode' on your source files is enough to get you pretty close to compatible with the latest code. --bbNov 07 2006Bill Baxter wrote:Bill Baxter wrote:For what it's worth, 'and' and 'or' as synonyms for '&&' and '||' already exists in C/C++. Trigraphs are a largely unknown feature that many appear to dislike, but I have read a reasonable argument that they are useful for teaching new programmers. Personally, I think that learning the meaning of new symbols is part of learning any language, so what's important is really that these symbols be easily recognizable and clearly meaningful. Once you've learned that '&&' represents a logical 'and' operation, are you liable to forget that or mistake it for something else? Also, binary 'and' (ie. '&') may want a descriptive term as well, if we're adding support for the logical operators. And I think that's when things begin to get confusing with the English terms. SeanDavid Qualls wrote:After 20 years of C/C++ my use of && and || was pretty instinctual, but after just a few months of working with Python on the side I found I started typing 'and' and 'or' without thinking about it.I think my meaning wasn't so clear so let me rephrase. It took no time to get used to 'and/or' when learning python. I don't recall ever mistakenly using '&&' in my first few python attempts. But what happened after a few months (and continues to today) is that I sometimes type 'and/or' in *C++* code (and now *D* too) when I mean &&/||. I think it's just because in my head I'm *thinking* 'if this and that' as I type. My brain recognizes 'and' as a legal keyword from somewhere and so my fingers type it. Unfortunately, if && and || are to be eliminated wholesale, the benefit will be seen as too small to be worth the pain of fixing all old code. Furthermore Walter believes that C/C++ syntax must be good enough or it wouldn't have survived so long (or something like that). And he believes that D should look and behave like C/C++ as much as possible to ease the transition for C/C++ refugees (hence the decision to not fix used wherever possible instead of new keywords (hence we have ':' showing up everywhere for all kinds of different purposes, and "static" with even more meanings than in C++). It could be possible to add 'and' and 'or' as _synonyms_, but that smacks as too many ways to do the same thing, and adds two keywords for something for which there is already another way to do it. It doesn't let you do or express anything you couldn't before.Nov 08 2006Sean Kelly wrote:Bill Baxter wrote:What do C trigraphs have to do with 'and' and 'or' as synonyms for '&&' and '||'? -- Bruno Medeiros - MSc in CS/E student http://www.prowiki.org/wiki4d/wiki.cgi?BrunoMedeiros#DBill Baxter wrote:For what it's worth, 'and' and 'or' as synonyms for '&&' and '||' already exists in C/C++. Trigraphs are a largely unknown feature that many appear to dislike, but I have read a reasonable argument that they are useful for teaching new programmers.David Qualls wrote:After 20 years of C/C++ my use of && and || was pretty instinctual, but after just a few months of working with Python on the side I found I started typing 'and' and 'or' without thinking about it.I think my meaning wasn't so clear so let me rephrase. It took no time to get used to 'and/or' when learning python. I don't recall ever mistakenly using '&&' in my first few python attempts. But what happened after a few months (and continues to today) is that I sometimes type 'and/or' in *C++* code (and now *D* too) when I mean &&/||. I think it's just because in my head I'm *thinking* 'if this and that' as I type. My brain recognizes 'and' as a legal keyword from somewhere and so my fingers type it. Unfortunately, if && and || are to be eliminated wholesale, the benefit will be seen as too small to be worth the pain of fixing all old code. Furthermore Walter believes that C/C++ syntax must be good enough or it wouldn't have survived so long (or something like that). And he believes that D should look and behave like C/C++ as much as possible to ease the transition for C/C++ refugees (hence the decision to not fix how switch works). He also believes that symbols (hence we have ':' showing up everywhere for all kinds of different purposes, and "static" with even more meanings than in C++). It could be possible to add 'and' and 'or' as _synonyms_, but that smacks as too many ways to do the same thing, and adds two keywords for something for which there is already another way to do it. It doesn't let you do or express anything you couldn't before.Nov 14 2006Bruno Medeiros wrote:Sean Kelly wrote:Nothing :-p I was confusing two similar but unrelated language features. SeanBill Baxter wrote:What do C trigraphs have to do with 'and' and 'or' as synonyms for '&&' and '||'?Bill Baxter wrote:For what it's worth, 'and' and 'or' as synonyms for '&&' and '||' already exists in C/C++. Trigraphs are a largely unknown feature that many appear to dislike, but I have read a reasonable argument that they are useful for teaching new programmers.David Qualls wrote:After 20 years of C/C++ my use of && and || was pretty instinctual, but after just a few months of working with Python on the side I found I started typing 'and' and 'or' without thinking about it.I think my meaning wasn't so clear so let me rephrase. It took no time to get used to 'and/or' when learning python. I don't recall ever mistakenly using '&&' in my first few python attempts. But what happened after a few months (and continues to today) is that I sometimes type 'and/or' in *C++* code (and now *D* too) when I mean &&/||. I think it's just because in my head I'm *thinking* 'if this and that' as I type. My brain recognizes 'and' as a legal keyword from somewhere and so my fingers type it. Unfortunately, if && and || are to be eliminated wholesale, the benefit will be seen as too small to be worth the pain of fixing all old code. Furthermore Walter believes that C/C++ syntax must be good enough or it wouldn't have survived so long (or something like that). And he believes that D should look and behave like C/C++ as much as possible to ease the transition for C/C++ refugees (hence the decision to not fix how switch works). He also believes that symbols (hence we have ':' showing up everywhere for all kinds of different purposes, and "static" with even more meanings than in C++). It could be possible to add 'and' and 'or' as _synonyms_, but that smacks as too many ways to do the same thing, and adds two keywords for something for which there is already another way to do it. It doesn't let you do or express anything you couldn't before.Nov 14 2006Bill Baxter wrote:Unfortunately, if && and || are to be eliminated wholesale, the benefit will be seen as too small to be worth the pain of fixing all old code. Furthermore Walter believes that C/C++ syntax must be good enough or it wouldn't have survived so long (or something like that). And he believes that D should look and behave like C/C++ as much as possible to ease the transition for C/C++ refugees (hence the decision to not fix used wherever possible instead of new keywords (hence we have ':' showing up everywhere for all kinds of different purposes, and "static" with even more meanings than in C++). It could be possible to add 'and' and 'or' as _synonyms_, but that smacks as too many ways to do the same thing, and adds two keywords for something for which there is already another way to do it. It doesn't let you do or express anything you couldn't before.I think it's a sign of weakness that there can be only one way to do it: If "and" is added, then && must go. If "is" is added, then === must go. --andersNov 24 2006David Qualls wrote:I just compiled my first D function (adapted from C), and had to replace all my 'and' 'or' and 'not's with the arcane &&, ||, and ! from prehistoric C to get it to compile. iso646.h has been a part of C for several years. Perl, C++ and possibly other languages have all adopted 'and', 'or', and 'not' as part of their grammar. I write software that will be maintained by non-programmers (mathematicians, who would prefer that I use Fortran). Lots of funny symbols in source code (like && || !) make it difficult to read for the non-immersed (ah, who am I kidding, I even have trouble reading it now and then). Is there any future to D incluing the logical operators in English, as opposed to &!|%'ish? (I didn't mention it, but 'mod' might also be a good (easy for non-programmers to understand) substitute for '%'.) DavidInteresting, I have never heard about iso646.h before. I have never seen any code that used it either. I only speak for my self, but I wouldn't use it and would find it harder to use. I like the &!|% version because it doesn't look like an identifier.Nov 07 2006I only speak for my self, but I wouldn't use it and would find it harder to use. I like the &!|% version because it doesn't look like an identifier."and" dosen't look like an identifier in my editor: it's blue instead of black :-PNov 07 2006BCS wrote:David Qualls wrote:I'd never heard of it either. But I love the description on this page: http://www.frech.ch/man/man0p/iso646.h.0p.html APPLICATION USAGE none. RATIONALE none. So it's of no use and there's no reason for it. Great!I just compiled my first D function (adapted from C), and had to replace all my 'and' 'or' and 'not's with the arcane &&, ||, and ! from prehistoric C to get it to compile. iso646.h has been a part of C for several years. Perl, C++ and possibly other languages have all adopted 'and', 'or', and 'not' as part of their grammar. I write software that will be maintained by non-programmers (mathematicians, who would prefer that I use Fortran). Lots of funny symbols in source code (like && || !) make it difficult to read for the non-immersed (ah, who am I kidding, I even have trouble reading it now and then). Is there any future to D incluing the logical operators in English, as opposed to &!|%'ish? (I didn't mention it, but 'mod' might also be a good (easy for non-programmers to understand) substitute for '%'.) DavidInteresting, I have never heard about iso646.h before. I have never seen any code that used it either.I only speak for my self, but I wouldn't use it and would find it harder to use. I like the &!|% version because it doesn't look like an identifier.In &&'s favor it also lets you really cram things together :-) if(a&&b&&c) has to become if(a and b and c) with words. But that's not necessarily a good thing. Which of the above would you rather be staring at at 3am at the end of a long night coding? --bbNov 07 2006Bill Baxter wrote:BCS wrote:ummmm .. mathematicians use more complicated symbols and notations than programmers.David Qualls wrote:I just compiled my first D function (adapted from C), and had to replace all my 'and' 'or' and 'not's with the arcane &&, ||, and ! from prehistoric C to get it to compile. iso646.h has been a part of C for several years. Perl, C++ and possibly other languages have all adopted 'and', 'or', and 'not' as part of their grammar. I write software that will be maintained by non-programmers (mathematicians, who would prefer that I use Fortran). Lots of funny symbols in source code (like && || !) make it difficult to read for the non-immersed (ah, who am I kidding, I even have trouble reading it now and then).I actually like symbols in code because they stand out right away. I always prefer {braces} to begin/end. At the same time, I hate too many symbols too close to each other.I'd never heard of it either. But I love the description on this page: http://www.frech.ch/man/man0p/iso646.h.0p.html APPLICATION USAGE none. RATIONALE none. So it's of no use and there's no reason for it. Great!Is there any future to D incluing the logical operators in English, as opposed to &!|%'ish? (I didn't mention it, but 'mod' might also be a good (easy for non-programmers to understand) substitute for '%'.) DavidInteresting, I have never heard about iso646.h before. I have never seen any code that used it either.I only speak for my self, but I wouldn't use it and would find it harder to use. I like the &!|% version because it doesn't look like an identifier.In &&'s favor it also lets you really cram things together :-) if(a&&b&&c) has to become if(a and b and c) with words. But that's not necessarily a good thing. Which of the above would you rather be staring at at 3am at the end of a long night coding? --bbNov 08 2006Hasan Aljudy wrote:... ummmm .. mathematicians use more complicated symbols and notations than programmers.It's funny; but the early programming languages were designed by mathematicians. Trust me, if they'd been able to use ∧ for and, and ∨ for or, they would have :) On a few systems, they actually *did*. I think programmers use "simpler" notation simply because we're limited to what we can bang out on a keyboard, and mathematicians aren't. (In fact, mathematicians seem to *love* inventing new symbols: the guy who invented lambda calculus originally wanted to introduce a new symbol. But when it was sent off to be published, the typesetter mistook his new symbol for a lambda (λ), and it kinda stuck :P) Incidentally, I think the symbols used in mathematics are better if they're available since they're pretty unique, and stand out even better. An interesting thing to try is writing up some CWEB code: it converts all the &&s and ||s to ∧s and ∨s in the TeX documentation :3... I actually like symbols in code because they stand out right away. I always prefer {braces} to begin/end. At the same time, I hate too many symbols too close to each other.I prefer using names if the names are short and meaningful. It makes code that little less cryptic. As long as you don't end up with insane Similarly, one of the reasons I hate Java is because everyIdentifierIsACompleteAndGrammaticallyCorrectSentence .justBecauseTheyCan(andItMakesWritingLongExpressionsInJava .aTotalPainInTheArse) Ah well, each to their own, I suppose. -- Daniel -- Unlike Knuth, I have neither proven or tried the above; it may not even make sense. v2sw5+8Yhw5ln4+5pr6OFPma8u6+7Lw4Tm6+7l6+7D i28a2Xs3MSr2e4/6+7t4TNSMb6HTOp5en5g6RAHCP http://hackerkey.com/Nov 09 2006Daniel Keep wrote:Hasan Aljudy wrote:I heard a story (possibly apocryphal) that the "\" character was actually added to ASCII because people thought you might want to write \/ for or and /\ for and :). Max... ummmm .. mathematicians use more complicated symbols and notations than programmers.It's funny; but the early programming languages were designed by mathematicians. Trust me, if they'd been able to use ∧ for and, and ∨ for or, they would have :) On a few systems, they actually *did*. I think programmers use "simpler" notation simply because we're limited to what we can bang out on a keyboard, and mathematicians aren't.Nov 10 2006Max Bolingbroke wrote:Daniel Keep wrote:I don't know about logical operators, but it sure is good for making happy stick figures. \o/ -- "whee! D 1.0" | / \ --bbHasan Aljudy wrote:I heard a story (possibly apocryphal) that the "\" character was actually added to ASCII because people thought you might want to write \/ for or and /\ for and :). Max... ummmm .. mathematicians use more complicated symbols and notations than programmers.It's funny; but the early programming languages were designed by mathematicians. Trust me, if they'd been able to use ∧ for and, and ∨ for or, they would have :) On a few systems, they actually *did*. I think programmers use "simpler" notation simply because we're limited to what we can bang out on a keyboard, and mathematicians aren't.Nov 10 2006Daniel Keep wrote:(In fact, mathematicians seem to *love* inventing new symbols: the guy who invented lambda calculus originally wanted to introduce a new symbol. But when it was sent off to be published, the typesetter mistook his new symbol for a lambda (λ), and it kinda stuck :P)I remember when I was first learning Japanese, it occurred to me "Whoa! now I'll never run out of single-character variable names when doing math equations!" For some reason it didn't actually prove to be that useful, though. Even the Japanese don't use Japanese symbols in their math for some reason, just Roman and Greek letters like everyone else. Every once in a while I'll use an 「ã‚〠to represent some big sub-expression that doesn't have much meaning but keeps on re-appearing in derivations. But that's about it. --bbNov 10 2006"Bill Baxter" <wbaxter gmail.com> wrote in message news:ej2gij$ohu$1 digitaldaemon.com...I remember when I was first learning Japanese, it occurred to me "Whoa! now I'll never run out of single-character variable names when doing math equations!" For some reason it didn't actually prove to be that useful, though. Even the Japanese don't use Japanese symbols in their math for some reason, just Roman and Greek letters like everyone else. Every once in a while I'll use an ??? to represent some big sub-expression that doesn't have much meaning but keeps on re-appearing in derivations. But that's about it.Having taken a few semesters of Japanese, I've noticed I've started to use some kanji in my notes as shorthand :SNov 10 2006Jarrett Billingsley wrote:"Bill Baxter" <wbaxter gmail.com> wrote in message news:ej2gij$ohu$1 digitaldaemon.com...Kanji as shorthand? I don't know, I find myself slower when writing kanji (maybe because I'm still a n b in that area), but I can write "nihon" faster than I can write 日本, for instance. (I wonder, can utf-8 encode that?)I remember when I was first learning Japanese, it occurred to me "Whoa! now I'll never run out of single-character variable names when doing math equations!" For some reason it didn't actually prove to be that useful, though. Even the Japanese don't use Japanese symbols in their math for some reason, just Roman and Greek letters like everyone else. Every once in a while I'll use an ??? to represent some big sub-expression that doesn't have much meaning but keeps on re-appearing in derivations. But that's about it.Having taken a few semesters of Japanese, I've noticed I've started to use some kanji in my notes as shorthand :SNov 10 2006Hasan Aljudy wrote:Jarrett Billingsley wrote:Some are simple, like person,big,small,sun,moon,water,fire,tree,mountain,mother,father... 人 大 å° æ—¥ 月 æ°´ ç« æœ¨ å±± æ¯ã€€çˆ¶ And they don't take up much space in your notes, no matter how complex they are. :-) Anyway, just to bring this slightly back on topic :), since D is utf-8 compatible, I suggest we should allow the use full-width unicode 'and' and 'or' symbols. :-) if ((a∧b)∨(c∧d)) { ... } Mmmm Unicode. That opens up a whole slew of possibilities. How about opDoubleIntegration? No problem! ∬f(x)dx; Oooh and we could allow this as a synonym for delete myVar: ☠myVar; That would surely push D over the top. Does your language have the skull-and-crossbones operator? I thought not. ;-) --bb"Bill Baxter" <wbaxter gmail.com> wrote in message news:ej2gij$ohu$1 digitaldaemon.com...Kanji as shorthand? I don't know, I find myself slower when writing kanji (maybe because I'm still a n b in that area), but I can write "nihon" faster than I can write 日本, for instance. (I wonder, can utf-8 encode that?)I remember when I was first learning Japanese, it occurred to me "Whoa! now I'll never run out of single-character variable names when doing math equations!" For some reason it didn't actually prove to be that useful, though. Even the Japanese don't use Japanese symbols in their math for some reason, just Roman and Greek letters like everyone else. Every once in a while I'll use an ??? to represent some big sub-expression that doesn't have much meaning but keeps on re-appearing in derivations. But that's about it.Having taken a few semesters of Japanese, I've noticed I've started to use some kanji in my notes as shorthand :SNov 10 2006Bill Baxter wrote:Hasan Aljudy wrote:Hmm, gotta admit UTF is a Good Thing. Or else we couldn't have this conversation here right now. :-)Jarrett Billingsley wrote:Some are simple, like person,big,small,sun,moon,water,fire,tree,mountain,mother,father... 人 大 å° æ—¥ 月 æ°´ ç« æœ¨ å±± æ¯ã€€çˆ¶ And they don't take up much space in your notes, no matter how complex they are. :-)"Bill Baxter" <wbaxter gmail.com> wrote in message news:ej2gij$ohu$1 digitaldaemon.com...Kanji as shorthand? I don't know, I find myself slower when writing kanji (maybe because I'm still a n b in that area), but I can write "nihon" faster than I can write 日本, for instance. (I wonder, can utf-8 encode that?)I remember when I was first learning Japanese, it occurred to me "Whoa! now I'll never run out of single-character variable names when doing math equations!" For some reason it didn't actually prove to be that useful, though. Even the Japanese don't use Japanese symbols in their math for some reason, just Roman and Greek letters like everyone else. Every once in a while I'll use an ??? to represent some big sub-expression that doesn't have much meaning but keeps on re-appearing in derivations. But that's about it.Having taken a few semesters of Japanese, I've noticed I've started to use some kanji in my notes as shorthand :SAnyway, just to bring this slightly back on topic :), since D is utf-8 compatible, I suggest we should allow the use full-width unicode 'and' and 'or' symbols. :-) if ((a∧b)∨(c∧d)) { ... }APL guys beware, we're retargeting from C(++) !!Mmmm Unicode. That opens up a whole slew of possibilities. How about opDoubleIntegration? No problem! ∬f(x)dx; Oooh and we could allow this as a synonym for delete myVar: ☠myVar;Hey, that's the warez operator! The delete symbol is †.That would surely push D over the top. Does your language have the skull-and-crossbones operator? I thought not. ;-) --bbNov 12 2006Georg Wrede wrote:Bill Baxter wrote: ...Well, you'd just want to make sure you don't get your objects inexplicably being resurrected days later to give you memory leaks. *ba-dum ching* Still, I'm surprised no-one has claimed the following gems: * ☢ - the Radioactive operator (use instead of "volatile"?) * ☣ - the Biohazard operator (for dirty external declarations?) * ☠- the "in Soviet Russia" operator (reverses lexical ordering of next statement) * ♨ - the "Hot springs" operator (process goes and takes a break at a relaxing hot spring, coming back ready and rarin' for some number crunching!) * ☃ - the Snowman operator (I... got nothin' on this one) -- Daniel -- Unlike Knuth, I have neither proven or tried the above; it may not even make sense. v2sw5+8Yhw5ln4+5pr6OFPma8u6+7Lw4Tm6+7l6+7D i28a2Xs3MSr2e4/6+7t4TNSMb6HTOp5en5g6RAHCP http://hackerkey.com/Mmmm Unicode. That opens up a whole slew of possibilities. How about opDoubleIntegration? No problem! ∬f(x)dx; Oooh and we could allow this as a synonym for delete myVar: ☠myVar;Hey, that's the warez operator! The delete symbol is †. ...Nov 12 2006Daniel Keep wrote:Georg Wrede wrote:Just need make liberal use of the ☂ operator in that case.Bill Baxter wrote: ...Well, you'd just want to make sure you don't get your objects inexplicably being resurrected days later to give you memory leaks. *ba-dum ching*Mmmm Unicode. That opens up a whole slew of possibilities. How about opDoubleIntegration? No problem! ∬f(x)dx; Oooh and we could allow this as a synonym for delete myVar: ☠myVar;Hey, that's the warez operator! The delete symbol is †. ...Still, I'm surprised no-one has claimed the following gems: * ☢ - the Radioactive operator (use instead of "volatile"?) * ☣ - the Biohazard operator (for dirty external declarations?) * ☠- the "in Soviet Russia" operator (reverses lexical ordering of next statement)Too funny.* ♨ - the "Hot springs" operator (process goes and takes a break at a relaxing hot spring, coming back ready and rarin' for some number crunching!) * ☃ - the Snowman operator (I... got nothin' on this one)It must mean "this variable is frozen", a.k.a. const ?? BTW at 12 points, that looks more like "bill the cat" than a snowman. _O -- Ack! --bbNov 12 2006Daniel Keep wrote:Hasan Aljudy wrote:Ok... A good idea could be providing a equivalencies file to the compiler (source + equivalencies), because I prefer to use "y" instead "and". "o" instead "or", "para" instead "for", "mientras" instead "while", "inicio" instead "begin", "final" instead "end" ... Really: Why you introduce the "prevalence" of english over other languages like spanish or catalan or french or italian or... when you have a really universal algebra? Sorry: I'm not nationalist... but I disagree you when you think only on english people. Antonio... ummmm .. mathematicians use more complicated symbols and notations than programmers.It's funny; but the early programming languages were designed by mathematicians. Trust me, if they'd been able to use ∧ for and, and ∨ for or, they would have :) On a few systems, they actually *did*. I think programmers use "simpler" notation simply because we're limited to what we can bang out on a keyboard, and mathematicians aren't. (In fact, mathematicians seem to *love* inventing new symbols: the guy who invented lambda calculus originally wanted to introduce a new symbol. But when it was sent off to be published, the typesetter mistook his new symbol for a lambda (λ), and it kinda stuck :P) Incidentally, I think the symbols used in mathematics are better if they're available since they're pretty unique, and stand out even better. An interesting thing to try is writing up some CWEB code: it converts all the &&s and ||s to ∧s and ∨s in the TeX documentation :3... I actually like symbols in code because they stand out right away. I always prefer {braces} to begin/end. At the same time, I hate too many symbols too close to each other.I prefer using names if the names are short and meaningful. It makes code that little less cryptic. As long as you don't end up with insane Similarly, one of the reasons I hate Java is because everyIdentifierIsACompleteAndGrammaticallyCorrectSentence .justBecauseTheyCan(andItMakesWritingLongExpressionsInJava .aTotalPainInTheArse) Ah well, each to their own, I suppose. -- DanielNov 23 2006Antonio, I'm also spanish and I think would be a big problem to allow that: how are you going to share your code? how are you going to work with people from other countries or different language? In the Internet english is the lingua franca. English has advantages, like its words usually are shorter, it's spoken by most programmers (from all the countries), and there're zillions of code written in that language. In fact, when I'm coding I write whole my programs in english (doc, comments, debug code, etc.), I often work with the english keyboard layout (because the symbols are better placed), all my programming books are in english (most translations sucks!!!), ... for me, programming in spanish would be 'unnatural' and annoying when I mix programming languages. Best regards, Samuel. antonio escribió:Daniel Keep wrote:Hasan Aljudy wrote:Ok... A good idea could be providing a equivalencies file to the compiler (source + equivalencies), because I prefer to use "y" instead "and". "o" instead "or", "para" instead "for", "mientras" instead "while", "inicio" instead "begin", "final" instead "end" ... Really: Why you introduce the "prevalence" of english over other languages like spanish or catalan or french or italian or... when you have a really universal algebra? Sorry: I'm not nationalist... but I disagree you when you think only on english people. Antonio... ummmm .. mathematicians use more complicated symbols and notations than programmers.It's funny; but the early programming languages were designed by mathematicians. Trust me, if they'd been able to use ∧ for and, and ∨ for or, they would have :) On a few systems, they actually *did*. I think programmers use "simpler" notation simply because we're limited to what we can bang out on a keyboard, and mathematicians aren't. (In fact, mathematicians seem to *love* inventing new symbols: the guy who invented lambda calculus originally wanted to introduce a new symbol. But when it was sent off to be published, the typesetter mistook his new symbol for a lambda (λ), and it kinda stuck :P) Incidentally, I think the symbols used in mathematics are better if they're available since they're pretty unique, and stand out even better. An interesting thing to try is writing up some CWEB code: it converts all the &&s and ||s to ∧s and ∨s in the TeX documentation :3... I actually like symbols in code because they stand out right away. I always prefer {braces} to begin/end. At the same time, I hate too many symbols too close to each other.I prefer using names if the names are short and meaningful. It makes code that little less cryptic. As long as you don't end up with insane Similarly, one of the reasons I hate Java is because everyIdentifierIsACompleteAndGrammaticallyCorrectSentence .justBecauseTheyCan(andItMakesWritingLongExpressionsInJava .aTotalPainInTheArse) Ah well, each to their own, I suppose. -- DanielNov 24 2006Samuel MV wrote:Antonio, I'm also spanish and I think would be a big problem to allow that: how are you going to share your code? how are you going to work with people from other countries or different language? In the Internet english is the lingua franca. English has advantages, like its words usually are shorter, it's spoken by most programmers (from all the countries), and there're zillions of code written in that language. In fact, when I'm coding I write whole my programs in english (doc, comments, debug code, etc.), I often work with the english keyboard layout (because the symbols are better placed), all my programming books are in english (most translations sucks!!!), ... for me, programming in spanish would be 'unnatural' and annoying when I mix programming languages.s/spanish/dutch/, s/also // (and maybe a grammar checker :P) and I concur :)Nov 24 2006