What is typing discipline

0 votes
C# typing discipline is described by Wikipedia as: static, dynamic, strong, safe, nominative, partially inferred

What is the definition of typing discipline? What do those terms mean, and how do they connect to language?
Jun 11 in C# by krishna
• 1,540 points
14 views

1 answer to this question.

0 votes

Wikipedia's typing discipline relates to the type system employed by C# (just try clicking the link, it will lead you to the Type System article).

What they imply is as follows:

Static - At compilation time, the types are determined (the compiler wants to know the type before it runs)

Dynamic - Types are determined at runtime (in C#, this is made easier by the dynamic keyword, which was introduced in C# 4.0).

Safe - The language doesn't allow you to break any of the type rules. Without a cast declared, you can't add strings into a list of complex types, for example.

Powerful - Take a look at Eric Lippert's article on the subject rather than me trying to explain it.

Nominative - Type equivalence is determined by the type's name (what this means is that two types with the same fields but different names are treated as different types)

Partially inferred - During compile-time, the compiler can assume the type you're referring to (this is the var keyword in C#, which allows you to not define the type in your code, but it's still determined in a static and strong fashion at compile-time).

answered Jun 14 by jyoti
• 1,240 points

Related Questions In C#

0 votes
1 answer

What is the best C# to VB.net converter

Telerik has a solid SharpDevelop-based converter that ...READ MORE

answered May 30 in C# by rajiv
• 1,620 points
23 views
0 votes
1 answer

What is the difference between C# and .NET?

C# is a programming language, and.NET refers ...READ MORE

answered Jun 7 in C# by pranav
• 2,580 points
11 views
0 votes
1 answer

What is cool about generics, why use them

Okay. For simplification, I am listing it ...READ MORE

answered Jun 23 in C# by krishna
• 1,540 points
9 views
0 votes
0 answers

What is the { get; set; } syntax in C#

I'm learning ASP.NET MVC, and while I ...READ MORE

Jun 11 in C# by krishna
• 1,540 points
4 views
0 votes
3 answers

Trying to upload files using Selenium(C#)

You can try using Javascript Executor to ...READ MORE

answered Aug 23, 2019 in Selenium by Abha
• 28,100 points
4,473 views
0 votes
1 answer

Deploy my Windows 10 IOT core application locally!

Of course, you, can! That is, in ...READ MORE

answered Jul 17, 2018 in IoT (Internet of Things) by nirvana
• 3,130 points
501 views
+6 votes
16 answers

How do backend of these really cool games work?

Most of the games these days don't ...READ MORE

answered Jul 19, 2018 in Career Counselling by Kalgi
• 52,350 points
7,268 views
0 votes
1 answer
0 votes
1 answer

What is LINQ and what does it do

LINQ or Language Integrated Query may refer to: a ...READ MORE

answered Jun 21 in C# by jyoti
• 1,240 points
9 views
0 votes
1 answer

What is the difference between a field and a property

The internal workings of a class should ...READ MORE

answered Jun 21 in C# by jyoti
• 1,240 points
8 views
webinar REGISTER FOR FREE WEBINAR X
Send OTP
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP