Questions Columns Rows
GitHub icon

Spec Sharp

Spec Sharp - Programming language

< >

Spec Sharp is a programming language created in 2004.

#1404on PLDB 19Years Old

Spec# is a programming language with specification language features that extends the capabilities of the C# programming language with Eiffel-like contracts, including object invariants, preconditions and postconditions. Like ESC/Java, it includes a static checking tool based on a theorem prover that is able to statically verify many of these invariants. It also includes a variety of other minor extensions to the language, such as non-null reference types. Read more on Wikipedia...

Example from Wikipedia:
static int Main(string![] args) requires args.Length > 0; ensures return == 0; { foreach(string arg in args) { Console.WriteLine(arg); } return 0; }

View source

- Build the next great programming language Search Add Language Features Creators Resources About Blog Acknowledgements Stats Sponsor Traffic Traffic Today Day 277 Logout