Home » Community » Coffee corner » "(national) C compiler"
Re: "(national) C compiler" [message #20714 is a reply to message #20689] |
Wed, 01 April 2009 15:56 |
mr_ped
Messages: 825 Registered: November 2005 Location: Czech Republic - Praha
|
Experienced Contributor |
|
|
depends what you hit.
{ and } are IMHO ideal for macro (although maybe I overlook something, but it looks very safe to me right now) except when used inside macros themselves.
#include is probably impossible to change (outside of compiler), because it's directive of preprocessor, thus it is handled before the translation in preprocessor begins. (basically any preprocessor directive will be difficult to change)
In this case it would better to create your own native language -> C compiler.
I'm still missing the point of this effort.
Such verbose language exists, it's Pascal, and the only reason why I did code simple application faster in Pascal then in C was that Borland Pascal did compile executable usually under 3 seconds while Borland C++ took often over minute. Otherwise having "begin end" make productivity suffer IMHO. You have to write it longer, and in the end I find the {} even easier to read and to match (in well intended code), so I think it's better to spend couple of hours to train somebody to recognize { } without second thought, then having "begin" "end" in programming language.
Then there are C keywords. There's only handful of them, and knowing the C original allows you to use C compilers (and they are many and almost everywhere). Any knowledge of native translation of them will leave you in very impractical position of knowing something what is not used anywhere except your special case.
And sources of application usually consist lot more of calls to library functions, then C keywords. Unless you plan to create wrapper for every common library to have their native language names, most of your application will look far from native language, only the keyword part of them.
I'm not saying it's not good to see your algorithm in native language first, but in my 15+ years experience I find paper+pencil much more stronger then any programming language. After I sort this one out, I simply translate it into C/C++ or other programming language in my head, but usually (for me) it's far easier to work with paper then computer during the design of algorithm phase.
But I think it's wasting someone's time, to make him learn something as impractical as native language version of C.
[Updated on: Wed, 01 April 2009 15:57] Report message to a moderator
|
|
|
|
|
"(national) C compiler"
By: kbyte on Tue, 31 March 2009 18:10
|
|
|
Re: "(national) C compiler"
|
|
|
Re: "(national) C compiler"
By: kbyte on Tue, 31 March 2009 20:26
|
|
|
Re: "(national) C compiler"
|
|
|
Re: "(national) C compiler"
By: kbyte on Tue, 31 March 2009 21:18
|
|
|
Re: "(national) C compiler"
By: mirek on Wed, 01 April 2009 05:33
|
|
|
Re: "(national) C compiler"
By: mr_ped on Tue, 31 March 2009 22:21
|
|
|
Re: "(national) C compiler"
By: kbyte on Tue, 31 March 2009 23:03
|
|
|
Re: "(national) C compiler"
|
|
|
Re: "(national) C compiler"
By: kbyte on Wed, 01 April 2009 11:20
|
|
|
Re: "(national) C compiler"
By: mr_ped on Wed, 01 April 2009 11:58
|
|
|
Re: "(national) C compiler"
By: kbyte on Wed, 01 April 2009 12:50
|
|
|
Re: "(national) C compiler"
|
|
|
Re: "(national) C compiler"
By: kbyte on Wed, 01 April 2009 15:03
|
|
|
Re: "(national) C compiler"
By: mr_ped on Wed, 01 April 2009 15:56
|
|
|
Re: "(national) C compiler"
By: kbyte on Wed, 01 April 2009 16:07
|
|
|
Re: "(national) C compiler"
|
|
|
Re: "(national) C compiler"
By: kbyte on Wed, 01 April 2009 23:50
|
|
|
Re: "(national) C compiler"
|
|
|
Re: "(national) C compiler"
By: wilf123 on Thu, 28 May 2009 19:19
|
Goto Forum:
Current Time: Sat May 11 10:11:13 CEST 2024
Total time taken to generate the page: 0.02811 seconds
|