Do you think that... lazarus / 8-Other ---------------------------------------------------------------------- typo · 2010-05-20 18:04 ...identifiers in WideString is simply a stupid question or it makes sense? ---------------------------------------------------------------------- Marc · 2010-05-20 18:55 ??? context ??? ---------------------------------------------------------------------- typo · 2010-05-20 19:13 Well, I think mainly about languages like Chinese and Arabic. ---------------------------------------------------------------------- typo · 2010-05-21 12:11 http://bugs.freepascal.org/view.php?id=16516 ---------------------------------------------------------------------- idog · 2010-05-21 14:19 Quote from: typo on May 20, 2010, 08:04:25 pm...identifiers in WideString is simply a stupid question or it makes sense? Are you talking about, say, variable and function names? I can assure you that in RTL languages, it'll look like a mess... and impossible to read for anyone who doesn't know the language. But other than that, I feel that most of my objection to the idea is simply habit ---------------------------------------------------------------------- typo · 2010-05-21 14:21 Right now I'm seeing a fun program that opens a pascal file so: Code: [Select]functio QualifyExtension(Ext : String) : String; initium   si Pos('.', Ext) > 1 ergo     Result := Copy(Ext, Pos('.', Ext), Length(Ext))   alius   si Ext[1] <> '.' ergo     Result := '.' + Ext   alius     Result := Ext; terminus;  It is a joke, I think, but could not be. ---------------------------------------------------------------------- typo · 2010-05-21 14:28 Quoteand impossible to read for anyone who doesn't know the language Well, what could one do with DoSomethingNow method name if he doesn't know English? ---------------------------------------------------------------------- theo · 2010-05-21 14:38 Quote from: typo on May 21, 2010, 04:28:54 pmWell, what could one do with DoSomethingNow method name if he doesn't know English? Learn some english. ;-) You can get that code above to compile, but it's idiotic: Code: [Select]{$MACRO ON} {$define functio:=function} {$define initium:=begin} {$define terminus:=end} {$define si:=if} {$define alius:=else} {$define ergo:=then} functio QualifyExtension(Ext : String) : String; initium   si Pos('.', Ext) > 1 ergo     Result := Copy(Ext, Pos('.', Ext), Length(Ext))   alius   si Ext[1] <> '.' ergo     Result := '.' + Ext   alius     Result := Ext; terminus; ---------------------------------------------------------------------- typo · 2010-05-21 15:18 QuoteLearn some english. ;-) And why not learn some Arabic to read the Arabian method names? ---------------------------------------------------------------------- theo · 2010-05-21 15:24 English is the "Lingua Franca" in the computer world: http://en.wikipedia.org/wiki/Lingua_franca I think it's good to have one language for this stuff. My language is german, but I use only english variable names etc. in my code. ---------------------------------------------------------------------- typo · 2010-05-21 15:47 Having one single language to colaborate is good but, speaking of idiocy, ANSI string is an idiotic thing. ---------------------------------------------------------------------- TurboRascal · 2010-05-21 15:59 @typo: your example program in "Latin" Pascal is fun, and I believe I understand your point, even though it's a lost cause ---------------------------------------------------------------------- Martin_fr · 2010-05-21 16:39 In the old days there were various localized versions of some languages available. Basic most notable was at least available in several European languages. So was logo (always a way forward, sometimes backwards, left 90 and repeat anyway...) Nowadays, it doesn't even matter. Even if a language was available in languages other than English, or if your employer would let you write variable names in your language, you would still need to know English. At least I haven't met anyone for a very long time who would hire a programmer who doesn't speak English. Many documents, API-descriptions, Help/Forum on the internet => all that is only available in English. Companies talk to other companies all over the globe, and the software developer needs to be able to take part in that. ---------------------------------------------------------------------- typo · 2010-05-21 17:10 All this is very good, but ANSI is a national standard for the US only. It also determines how many inches should measure a meter or how many square feet should measure a square meter. ---------------------------------------------------------------------- theo · 2010-05-21 17:26 Quote from: typo on May 21, 2010, 07:10:38 pmAll this is very good, but ANSI is a national standard for the US only. It also determines how many inches should measure a meter or how many square feet should measure a square meter. And what's the problem? Lazarus uses UTF-8 and the compiler works only with the ASCII range afaik. ---------------------------------------------------------------------- typo · 2010-05-21 17:29 No problem, I'm just addressing a general question. ---------------------------------------------------------------------- idog · 2010-05-21 17:39 Quote from: typo on May 21, 2010, 04:28:54 pmWell, what could one do with DoSomethingNow method name if he doesn't know English? It's still easier to learn just English, and not every single language someone has ever programmed in! Aside from English being the "Lingua franca" of computers, as Theo said, you don't really have to know that much of it to make a readable program. It's not like you write function names in the Future Progressive tense or whatever // It's bad enough when the comments are in an unfamiliar language. I guess it also depends if you're writing code for an in-house program or for an international open-source project. And finally, making programmers learn the same language facilitates communications such as this! ---------------------------------------------------------------------- typo · 2010-05-21 17:50 I think it would be as has happened with the file names of operating systems, people could use more meaningful names. ---------------------------------------------------------------------- theo · 2010-05-21 18:22 Quote from: typo on May 21, 2010, 07:50:34 pm people could use more meaningful names. But meaningful only for themselves. Imagine the LCL would countain all sorts of scripts and languages of all the people contributing.  Cyrillic, Arabic, Hebrew, Chinese, Hangeul etc. Readable for nobody. ---------------------------------------------------------------------- typo · 2010-05-21 18:36 QuoteBut meaningful only for themselves. I think the major markets would have no problem to create their own standards. It is not anarchy, it is just a multiple order. ---------------------------------------------------------------------- typo · 2010-05-22 10:59 A programmer who does not speak English could not get employment in Brazil too, subscribing an international standard is increasingly valued in any business today. But ANSI standard has nothing with international standard, it is american only. It was not intended to be international. As an international standard it is dysfunctional and makes sense only as a default standard. ---------------------------------------------------------------------- Martin_fr · 2010-05-22 11:25 ANSI actual is not a char-encoding standard, it's an institution: http://en.wikipedia.org/wiki/American_National_Standards_Institute ANSI-encoding (in computer context) is used to refer to  a way of encoding text: http://en.wikipedia.org/wiki/Code_page#Windows_.28ANSI.29_code_pages As you can see, the standard does support various languages. (AFAIK some code pages are using a multi-byte encoding to cope with more than 256 chars) FPC defines that identifiers have to be made up from a selected range of latin-based chars. Those chars have the same representation in latin-based ANSI, latin based ASCII, or utf8. So FPC does not limit you to ANSI => it does limit you to a latin- based encoding. (as far as identifiers go) --- And if you use Lazarus, then your source is usually saved in utf8 encoding => which is as international as it currently gets. ---------------------------------------------------------------------- typo · 2010-05-22 11:37 QuoteANSI actual is not a char-encoding standard, it's an institution: http://en.wikipedia.org/wiki/American_National_Standards_Institute Yes, of course. ---------------------------------------------------------------------- typo · 2010-05-22 16:47 But it is quite likely that open source projects are sponsored by governments in the near future. They simply did not discover them yet. In Brazil, university students of state-owned universities still use Delphi because their professors want so. Government offices use Microsoft products. This inertia will end some day. Open source projects have a strong appeal to people who identify with values such as democracy and participation. I also write my code in English, to avoid writing twice and serve as a starting point for others. But ANSI standard is a default standard.