473,387 Members | 1,536 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

New language features?

Joe
It seems to me that C could be improved by adding a few more features
to the standard. I read some of the recent thread "Criticism of the C
programming language ??????" which shows a lot of opinions for and
against adding language features.

What makes sense to me is to incorporate features that are commonly
available as compiler extensions (i.e. anonymous unions) into the
standard, because they are well-tested, and obviously have many actual
users interested. It also would not put a big burden on compiler
developers. Maybe the formal standards process is just too complicated
to allow the addition of a small number of minor additions? Maybe it
would be useful to have a well-defined, standardized set of language
extensions to make it easier to write portable code? Or, maybe it is
too hard to get everyone to agree, and I should be thankful at the
current level of C standardization?
Nov 29 '07 #1
3 1260
Joe wrote:
It seems to me that C could be improved by adding a few more features
to the standard. [...]
It seems that way to everybody else in the world, too.
That way, me lad, lies PL/1.

--
Eric Sosman
es*****@ieee-dot-org.invalid
Nov 30 '07 #2
Joe <jk****@nc.rr.comwrote:

# would be useful to have a well-defined, standardized set of language
# extensions to make it easier to write portable code? Or, maybe it is
# too hard to get everyone to agree, and I should be thankful at the
# current level of C standardization?

(1) gcc source is available. You can modify it (or sponsor someone
to modify it) to incorporate the changes you want. You can then
release those changes to the gcc community and try to get them
incorporated in the compiler releases. That gets you leverage to
get ANSI to include them.

(2) Write a preprocessor to convert the language you want to the
language you have to use.

(3) Write a new language.

--
SM Ryan http://www.rawbw.com/~wyrmwif/
There are subtler ways of badgering a witness.
Nov 30 '07 #3

"Joe" <jk****@nc.rr.comwrote in message
news:f0**********************************@r60g2000 hsc.googlegroups.com...
It seems to me that C could be improved by adding a few more features
to the standard. I read some of the recent thread "Criticism of the C
programming language ??????" which shows a lot of opinions for and
against adding language features.

What makes sense to me is to incorporate features that are commonly
available as compiler extensions (i.e. anonymous unions) into the
standard, because they are well-tested, and obviously have many actual
users interested. It also would not put a big burden on compiler
developers. Maybe the formal standards process is just too complicated
to allow the addition of a small number of minor additions? Maybe it
would be useful to have a well-defined, standardized set of language
extensions to make it easier to write portable code? Or, maybe it is
too hard to get everyone to agree, and I should be thankful at the
current level of C standardization?
here is the problem:
there are no standards;
or, there is some long and drawn out process for making them.

now, a system for informal compiler extensions would be useful, especially
if some compilers could agree on whether or not to implement them.

a tradeoff could be possible, for example, something similar to the
old-style IETF RFC system, or similar...

Scheme has something similar (the SRFI system).
http://srfi.schemers.org/

one could look here for a possible organizational idea.
but, then is the question:
who would organize such a system?...;
and, how much would it actually matter?...;
....

unless some more major players in the compiler field were involved (such as
GCC, ...), this would be, at most, largely restricted to minor and hobbyist
implementations (my case is a case of hobbyism...).

this may not be all bad though, as even some semblance of standardization is
probably better than the existing practice of "word of mouth" compiler
extensions...

or, maybe similar exists already?...
I don't know...

Nov 30 '07 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

18
by: 5460lqh | last post by:
who can tell me which two features in the C++ language are most usefule, and which two features that you think are the most over-rated or the most misused and why you think so? Thanks very much!
22
by: Michael Nahas | last post by:
Antti & all interested, The draft description of my language to replace C is available at: http://nahas.is-a-geek.com/~mike/MyC.pdf I am a long time C programmer (I read the old testament...
7
by: Edward Yang | last post by:
A few days ago I started a thread "I think C# is forcing us to write more (redundant) code" and got many replies (more than what I had expected). But after reading all the replies I think my...
7
by: RFS666 | last post by:
Hello, I would like to use variables with a type in jscript.NET. I declare them as follows: var x : double = 5.03; This doesn't work in my script, that I write to the page in codebehind with...
6
by: Sean | last post by:
Hi, guys: I am newbie to the C++ from the C. I want to know something about the C++ language features! Could you describe your two favorite features in the C++ language and why you like them so...
669
by: Xah Lee | last post by:
in March, i posted a essay “What is Expressiveness in a Computer Language”, archived at: http://xahlee.org/perl-python/what_is_expresiveness.html I was informed then that there is a academic...
1
by: Petr Prikryl | last post by:
Do you think that the following could became PEP (pre PEP). Please, read it, comment it, reformulate it,... Abstract Introduction of the mechanism for language extensions via modules...
11
by: Sarath | last post by:
I'm so much font of working with C++ . That's the reason why I'm not yet looked or craze about any other language. Still a question exists, really C++ is the best language in its category?
84
by: aarklon | last post by:
Hi all, I found an interesting article here:- http://en.wikipedia.org/wiki/Criticism_of_the_C_programming_language well what do you guys think of this article....??? Is it constructive...
43
by: Adem24 | last post by:
The World Joint Programming Language Standardization Committe (WJPLSC) hereby proclaims to the people of the world that a new programming language is needed for the benefit of the whole mankind in...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.