473,815 Members | 2,537 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

*** New C# Language V2.0 Specification Now Available ***

You may download the new specification at the C# Developer Center
(http://msdn.microsoft.com/vcsharp/language). There is a discussion forum
for the C# language on that same page.
If you don't own a copy of MS Word, you can download the free viewer at:

http://www.microsoft.com/downloads/d...displaylang=EN
--
Eric Gunnerson

Visit the C# product team at http://www.csharp.net
Eric's blog is at http://blogs.gotdotnet.com/ericgu/

This posting is provided "AS IS" with no warranties, and confers no rights.
Nov 15 '05 #1
42 2186
Eric Gunnerson [MS] <er****@online. microsoft.com> wrote:
You may download the new specification at the C# Developer Center
(http://msdn.microsoft.com/vcsharp/language). There is a discussion forum
for the C# language on that same page.


<snip>

Any word on when the other new features in C# are likely to be released
in a specification (draft or otherwise)? I'm looking forward to seeing
exactly how properties with different access modifiers for the accessor
and mutator are specified. (That and whether or not a property will be
able to define its own variables which aren't accessible outside the
property itself.)

--
Jon Skeet - <sk***@pobox.co m>
http://www.pobox.com/~skeet
If replying to the group, please do not mail me too
Nov 15 '05 #2
Is that the new spec or is it the new "draft" spec.........hm mmm

"Jon Skeet [C# MVP]" <sk***@pobox.co m> wrote in message
news:MP******** *************** *@msnews.micros oft.com...
Eric Gunnerson [MS] <er****@online. microsoft.com> wrote:
You may download the new specification at the C# Developer Center
(http://msdn.microsoft.com/vcsharp/language). There is a discussion forum for the C# language on that same page.


<snip>

Any word on when the other new features in C# are likely to be released
in a specification (draft or otherwise)? I'm looking forward to seeing
exactly how properties with different access modifiers for the accessor
and mutator are specified. (That and whether or not a property will be
able to define its own variables which aren't accessible outside the
property itself.)

--
Jon Skeet - <sk***@pobox.co m>
http://www.pobox.com/~skeet
If replying to the group, please do not mail me too

Nov 15 '05 #3
It's a draft . See the page's C# 2.0 Specification paragraph.

Willy.
"Jesse" <th***********@ urnuts.com> wrote in message news:uS******** ******@TK2MSFTN GP11.phx.gbl...
Is that the new spec or is it the new "draft" spec.........hm mmm

"Jon Skeet [C# MVP]" <sk***@pobox.co m> wrote in message
news:MP******** *************** *@msnews.micros oft.com...
Eric Gunnerson [MS] <er****@online. microsoft.com> wrote:
You may download the new specification at the C# Developer Center
(http://msdn.microsoft.com/vcsharp/language). There is a discussion forum for the C# language on that same page.


<snip>

Any word on when the other new features in C# are likely to be released
in a specification (draft or otherwise)? I'm looking forward to seeing
exactly how properties with different access modifiers for the accessor
and mutator are specified. (That and whether or not a property will be
able to define its own variables which aren't accessible outside the
property itself.)

--
Jon Skeet - <sk***@pobox.co m>
http://www.pobox.com/~skeet
If replying to the group, please do not mail me too


Nov 15 '05 #4
"Eric Gunnerson [MS]" <er****@online. microsoft.com> wrote in message
news:uh******** ******@TK2MSFTN GP09.phx.gbl...
You may download the new specification at the C# Developer Center
(http://msdn.microsoft.com/vcsharp/language). There is a discussion forum
for the C# language on that same page.


I now have three C# language specs:

C# Language Specification (from Microsoft), dated 2001
ECMA-334, dated 2002
C# Language Specification v1.2, dated 2003

Where can I find descriptions of how they differ?
Nov 15 '05 #5
I don't like the verbose syntax "yield return" and "yield break". Why not
simply "yield" and "return"?

If someboy sees "return" he expects the end of the method. Why not
preserving this?

Yield is only reserved within iterator methods so there should really be no
problem with code breaking. Even if someboy was so stupid to use "yield" as
identifier - this is quickly corrected, as yield is not reserved as class,
method, property-name, only locals would be affected and ONLY within
iterator methods! Already built assemblies are not affected.

--
cody

[Freeware, Games and Humor]
www.deutronium.de.vu || www.deutronium.tk
Nov 15 '05 #6
Partials are just stupid, and anonymous methods, argue all you want about
spaghetti code, its still spaghetti code.

The only real gain from 2.0 is generics

Still doesnt fix all the gaps in libraries, how much time is wasted wrapping
things that should have been wrapped. how much of a typical project has to
end up going to native calls. Time wasted in my view.
"codymanix" <do************ *********@gmx.d e> wrote in message
news:OL******** ******@TK2MSFTN GP09.phx.gbl...
I don't like the verbose syntax "yield return" and "yield break". Why not
simply "yield" and "return"?

If someboy sees "return" he expects the end of the method. Why not
preserving this?

Yield is only reserved within iterator methods so there should really be no problem with code breaking. Even if someboy was so stupid to use "yield" as identifier - this is quickly corrected, as yield is not reserved as class,
method, property-name, only locals would be affected and ONLY within
iterator methods! Already built assemblies are not affected.

--
cody

[Freeware, Games and Humor]
www.deutronium.de.vu || www.deutronium.tk

Nov 15 '05 #7
> Partials are just stupid

I have a bad feeling about them too but look into reality programming. Often
Forms-classes can get really huge and now imagine you are working in a team
and more than 1 programmer wants to work on that class. Additionally
automatically generated code can be separated from written code. Maybe they
aren't as bad when you once get used to them-
, and anonymous methods, argue all you want about
spaghetti code, its still spaghetti code.
It depends. Imagine you have 30 controls in one form and have to add a
eventhandler to each of them where the handling code is just a few lines
each time. Do you want to write 30 methods and make sure that each method
belongs to excact one handler and you don't left one out or want to define
the eventhandling methods where they are used?
The only real gain from 2.0 is generics
Indeed! No more stupid unneccessary casting!
Still doesnt fix all the gaps in libraries, how much time is wasted wrapping things that should have been wrapped. how much of a typical project has to end up going to native calls. Time wasted in my view.
..Net isn't a wrapper to the Windows API or to COM objects. It is a
independent platform (although it runs only on windows-how funny :) )
When you want to use functionality which is not part of .Net you have to use
Interop and build your own wrappers.

In my experience native calls are very rarely used. On which kind of
projects do you work where you need to many native stuff?
"codymanix" <do************ *********@gmx.d e> wrote in message
news:OL******** ******@TK2MSFTN GP09.phx.gbl...
I don't like the verbose syntax "yield return" and "yield break". Why not simply "yield" and "return"?

If someboy sees "return" he expects the end of the method. Why not
preserving this?

Yield is only reserved within iterator methods so there should really be

no
problem with code breaking. Even if someboy was so stupid to use "yield"

as
identifier - this is quickly corrected, as yield is not reserved as class, method, property-name, only locals would be affected and ONLY within
iterator methods! Already built assemblies are not affected.


--
cody

[Freeware, Games and Humor]
www.deutronium.de.vu || www.deutronium.tk
Nov 15 '05 #8
The first two should be identical, though the ECMA one has different
numbering.
The third one has some clarifications and updates, and a new introduction.

--
Eric Gunnerson

Visit the C# product team at http://www.csharp.net
Eric's blog is at http://blogs.gotdotnet.com/ericgu/

This posting is provided "AS IS" with no warranties, and confers no rights.
"Mike Schilling" <ms************ *@hotmail.com> wrote in message
news:eq******** ******@TK2MSFTN GP12.phx.gbl...
"Eric Gunnerson [MS]" <er****@online. microsoft.com> wrote in message
news:uh******** ******@TK2MSFTN GP09.phx.gbl...
You may download the new specification at the C# Developer Center
(http://msdn.microsoft.com/vcsharp/language). There is a discussion forum for the C# language on that same page.


I now have three C# language specs:

C# Language Specification (from Microsoft), dated 2001
ECMA-334, dated 2002
C# Language Specification v1.2, dated 2003

Where can I find descriptions of how they differ?

Nov 15 '05 #9
We had originally used "yield" by itself, but unfortunately, that would
require us to add a new keyword to the language, which has the potential to
break current code. By using "yield return", we don't have to do this.

--
Eric Gunnerson

Visit the C# product team at http://www.csharp.net
Eric's blog is at http://blogs.gotdotnet.com/ericgu/

This posting is provided "AS IS" with no warranties, and confers no rights.
"codymanix" <do************ *********@gmx.d e> wrote in message
news:OL******** ******@TK2MSFTN GP09.phx.gbl...
I don't like the verbose syntax "yield return" and "yield break". Why not
simply "yield" and "return"?

If someboy sees "return" he expects the end of the method. Why not
preserving this?

Yield is only reserved within iterator methods so there should really be no problem with code breaking. Even if someboy was so stupid to use "yield" as identifier - this is quickly corrected, as yield is not reserved as class,
method, property-name, only locals would be affected and ONLY within
iterator methods! Already built assemblies are not affected.

--
cody

[Freeware, Games and Humor]
www.deutronium.de.vu || www.deutronium.tk

Nov 15 '05 #10

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

Similar topics

1
1534
by: Andrew James | last post by:
Gentlemen, I'm currently in the process of designing a language which will be used to specify sets of files on a WebDAV server, encoded in a URL. The aims of the language are to (in no particular order): * Be concise, aesthetic and easy to type * Be as similar as possible to existing query languages * Allow for (nested) boolean operations * Be cross-platform (so don't include any characters which can't be used in filenames on *NIX or...
7
1886
by: Erwin Moller | last post by:
Hi group, I am a bit cconfused with the different tags I encounter to start a script. I used to use: language="Javascript" Nowadays I use: type="text/javascript" I did see some javascript1.2 (i think) too, but never used that. But when I let my favorite editor (Eclipse) do some codecompletion I get:
22
3399
by: Vincent | last post by:
I would like to develop a site that should be available in several languages, say English, French and German. My question is: how can I suggest browsers of visitors to display the correct language depending on their preferences ? Let me explain this more clearly: in many browsers, you are given the possibility to choose your preferred language: fr, en, de, etc. Typically, in Mozilla, this option is detailed as follows: "Web pages are...
63
5920
by: Tristan Miller | last post by:
Greetings. Do any popular browsers correctly support <q>, at least for Western languages? I've noticed that Mozilla uses the standard English double-quote character, ", regardless of the lang attribute of the HTML document. Will any browsers render German-style quotes or French-style guillemots for lang="de" and lang="fr", respectively? Regards, Tristan
2
2246
by: Thomas G. Marshall | last post by:
Arthur J. O'Dwyer <ajo@nospam.andrew.cmu.edu> coughed up the following: > On Thu, 1 Jul 2004, Thomas G. Marshall wrote: >> >> Aside: I've looked repeatedly in google and for some reason cannot >> find what is considered to be the latest ansi/iso C spec. I cannot >> even find C99 in its final draft. Where in ansi.org or the like do >> I find it? > > The official C99 specification is copyright ISO and distributed by > various national...
86
3968
by: Randy Yates | last post by:
In Harbison and Steele's text (fourth edition, p.111) it is stated, The C language does not specify the range of integers that the integral types will represent, except ot say that type int may not be smaller than short and long may not be smaller than int. They go on to say, Many implementations represent characters in 8 bits, type short in
134
8057
by: evolnet.regular | last post by:
I've been utilising C for lots of small and a few medium-sized personal projects over the course of the past decade, and I've realised lately just how little progress it's made since then. I've increasingly been using scripting languages (especially Python and Bourne shell) which offer the same speed and yet are far more simple and safe to use. I can no longer understand why anyone would willingly use C to program anything but the lowest...
0
1156
by: Marshal [DirectX MVP 2003] | last post by:
In anticipation of the chat, I have filtered all of my current enhancement aleration ideas through the software development community, via the following postings: C# Language Specification - Delegates C# Language Specification - Extension Methods C# Language Specification - Enumeration C# Language Specification - Generics If anybody else has posted enhancement or alteration proposals in
23
3655
by: Xah Lee | last post by:
The Concepts and Confusions of Pre-fix, In-fix, Post-fix and Fully Functional Notations Xah Lee, 2006-03-15 Let me summarize: The LISP notation, is a functional notation, and is not a so-called pre-fix notation or algebraic notation. Algebraic notations have the concept of operators, meaning, symbols placed around arguments. In algebraic in-fix notation, different
0
9736
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9611
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10408
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10428
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10145
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9226
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7687
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5710
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3888
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.