Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is the "C# Language Specifications" updated for C# 6.0 or 7.0 yet?

Tags:

c#

c#-6.0

c#-7.0

C# is already 7.0. But C# Language Specifications is still for 5.0.

I realize the specifications is outdated when I couldn't find GetValueOrDefault() for a nullable type in the document.

I wonder if the specification has been updated yet, at least for 6.0?

like image 463
Tim Avatar asked Apr 01 '17 00:04

Tim


People also ask

Is there a C+?

C+ is a slightly above average grade on an assignment (usually within an educational context)... There is much debate on this topic... Low and High level languages: 1. Low level languages (Binary (Computer language)): Assembly, Decimal, Hexadecimal, C, C++(lower/mid) a.

What is C is used for?

C programming language is a machine-independent programming language that is mainly used to create many types of applications and operating systems such as Windows, and other complicated programs such as the Oracle database, Git, Python interpreter, and games and is considered a programming foundation in the process of ...

Is C still used in 2022?

C is one of the earliest and most widely used programming languages. C is the fourth most popular programming language in the world as of January 2022. Modern languages such as Go, Swift, Scala, and Python are not as popular as C. Where is C used today?


2 Answers

The current status is:

  • Microsoft's officially released spec is indeed 5.0.
  • An unofficial version of the 6.0 spec exists.
  • Work is being done to update the ECMA spec to 6.0 and 7.x. ECMA has released its 5.0 spec in December 2017.

But those are just specifications of the C# language, they don't specify types and members that exist in the base class library (with some exceptions that are required for various language features). Until recently, each framework defined its library on its own, but now even that is standardized, though the .Net Standard.

like image 133
svick Avatar answered Dec 14 '22 23:12

svick


I have not found any official language specifications for C# 6 and 7 on Microsoft or ECMA site, but here are few links.

While Microsoft's documentation for C# 6 and 7 at these links is succinct, the StackOverflow pages have lots of examples, details and cover gotchas.

For C# 7

What's new in C# 7 on Microsoft website.

For C# 6

What's New in C# 6 on Microsoft website.

For C# 5 and older versions

If someone stumbles upon this question looking for C# version 5, 4 or 2 specifications, Jon Skeet at C# in Depth page has put together a nice collection of all the specifications.

P.S. I am intentionally pasting an image snapshot of his page (instead of contents in text format) so I don't take the traffic away from his page.

enter image description here

like image 38
HappyTown Avatar answered Dec 14 '22 23:12

HappyTown