Re: Shall I move from C to Java?
- From: Tim Wescott <tim@xxxxxxxxxxxxxxxx>
- Date: Tue, 14 Aug 2007 19:31:02 -0500
On Tue, 14 Aug 2007 10:00:47 -0700, *** wrote:
Hans-Bernhard Brker wrote:
[X-post lacked a F'up2; reduced to one group]
*** wrote:
I am planning to learn Java.
Why, given you clearly don't know if it's going to do you any good?
Can I access HW registers in Java? Or can I call C function from Java
program?
If you must ask, that strongly implies it's a bad idea for you to learn
Java at this point. You have to analyze what it means to use Java
instead of C first.
Is there any C syntax extension that support multi-thread like Java
syntax?
or how can I use C Macro to hide the OS routine call in C program?
I don't like the style:
fun(...)
{
p();
.
.
.
v();
}
I want to use
syn fun(...)
{
.
.
.
}
So, you're saying you want to redefine C such that experienced C
programmers won't be able to read your code?
Just who are you planning on hiring to work on this?
another question is how to disable "goto", can I write #define goto
error("no goto")
Well, why not just refrain from using "goto"? I've been coding in C for
nearly 20 years and have yet to use it myself (yes, I know it's good for
exception handling). Were I to see one in a code review I'd be
scrutinizing it closely, and probably trying to suggest realistic
alternatives.
If you're trying to control developers by putting it in some universal
header file they'll get around you one way or another; if you're trying to
avoid using it yourself -- just avoid it.
--
Tim Wescott
Control systems and communications consulting
http://www.wescottdesign.com
Need to learn how to apply control theory in your embedded system?
"Applied Control Theory for Embedded Systems" by Tim Wescott
Elsevier/Newnes, http://www.wescottdesign.com/actfes/actfes.html
.
- Follow-Ups:
- Re: Shall I move from C to Java?
- From: ***
- Re: Shall I move from C to Java?
- References:
- Re: Shall I move from C to Java?
- From: Hans-Bernhard Bröker
- Re: Shall I move from C to Java?
- From: ***
- Re: Shall I move from C to Java?
- Prev by Date: Re: Defendant wins breathalyzer source code
- Next by Date: Re: Defendant wins breathalyzer source code
- Previous by thread: Re: Shall I move from C to Java?
- Next by thread: Re: Shall I move from C to Java?
- Index(es):