What is typing discipline?

Multi tool use
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ height:90px;width:728px;box-sizing:border-box;
}
Wikipedia talks about C# typing discipline:
static, dynamic, strong, safe, nominative, partially inferred
What is typing discipline? What those terms mean and how they are related to the language?
c# terminology
add a comment |
Wikipedia talks about C# typing discipline:
static, dynamic, strong, safe, nominative, partially inferred
What is typing discipline? What those terms mean and how they are related to the language?
c# terminology
add a comment |
Wikipedia talks about C# typing discipline:
static, dynamic, strong, safe, nominative, partially inferred
What is typing discipline? What those terms mean and how they are related to the language?
c# terminology
Wikipedia talks about C# typing discipline:
static, dynamic, strong, safe, nominative, partially inferred
What is typing discipline? What those terms mean and how they are related to the language?
c# terminology
c# terminology
asked Sep 13 '17 at 21:38


vnbrsvnbrs
1,56811024
1,56811024
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
The typing discipline on wikipedia refers to the type system used by C# (just try clicking the link, it will lead you to the Type System article).
As for what they mean:
static - The types are determined at compile-time (the compiler wants to know the type before it runs)
dynamic - The types are determined at runtime (in C#, this is facilitated with the dynamic
keyword introduced in C# 4.0)
safe - The language doesn't allow you to violate the type rules that it has. You can't put strings into a list of complex types for instance without a cast defined.
strong - Rather than poorly explain it, have a look at Eric Lippert's article on the topic here
nominative - The name of the type is used to determine type equivalence (what this means is that two types with the same fields but different names are treated as different types)
partially inferred - The compiler can guess the type you are referring to during compile-time (this is the var
keyword in c#, which allows you to not specify the type in your code, although it's still determined at compile-time in a static and strong way)
add a comment |
Your Answer
StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f46207205%2fwhat-is-typing-discipline%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
The typing discipline on wikipedia refers to the type system used by C# (just try clicking the link, it will lead you to the Type System article).
As for what they mean:
static - The types are determined at compile-time (the compiler wants to know the type before it runs)
dynamic - The types are determined at runtime (in C#, this is facilitated with the dynamic
keyword introduced in C# 4.0)
safe - The language doesn't allow you to violate the type rules that it has. You can't put strings into a list of complex types for instance without a cast defined.
strong - Rather than poorly explain it, have a look at Eric Lippert's article on the topic here
nominative - The name of the type is used to determine type equivalence (what this means is that two types with the same fields but different names are treated as different types)
partially inferred - The compiler can guess the type you are referring to during compile-time (this is the var
keyword in c#, which allows you to not specify the type in your code, although it's still determined at compile-time in a static and strong way)
add a comment |
The typing discipline on wikipedia refers to the type system used by C# (just try clicking the link, it will lead you to the Type System article).
As for what they mean:
static - The types are determined at compile-time (the compiler wants to know the type before it runs)
dynamic - The types are determined at runtime (in C#, this is facilitated with the dynamic
keyword introduced in C# 4.0)
safe - The language doesn't allow you to violate the type rules that it has. You can't put strings into a list of complex types for instance without a cast defined.
strong - Rather than poorly explain it, have a look at Eric Lippert's article on the topic here
nominative - The name of the type is used to determine type equivalence (what this means is that two types with the same fields but different names are treated as different types)
partially inferred - The compiler can guess the type you are referring to during compile-time (this is the var
keyword in c#, which allows you to not specify the type in your code, although it's still determined at compile-time in a static and strong way)
add a comment |
The typing discipline on wikipedia refers to the type system used by C# (just try clicking the link, it will lead you to the Type System article).
As for what they mean:
static - The types are determined at compile-time (the compiler wants to know the type before it runs)
dynamic - The types are determined at runtime (in C#, this is facilitated with the dynamic
keyword introduced in C# 4.0)
safe - The language doesn't allow you to violate the type rules that it has. You can't put strings into a list of complex types for instance without a cast defined.
strong - Rather than poorly explain it, have a look at Eric Lippert's article on the topic here
nominative - The name of the type is used to determine type equivalence (what this means is that two types with the same fields but different names are treated as different types)
partially inferred - The compiler can guess the type you are referring to during compile-time (this is the var
keyword in c#, which allows you to not specify the type in your code, although it's still determined at compile-time in a static and strong way)
The typing discipline on wikipedia refers to the type system used by C# (just try clicking the link, it will lead you to the Type System article).
As for what they mean:
static - The types are determined at compile-time (the compiler wants to know the type before it runs)
dynamic - The types are determined at runtime (in C#, this is facilitated with the dynamic
keyword introduced in C# 4.0)
safe - The language doesn't allow you to violate the type rules that it has. You can't put strings into a list of complex types for instance without a cast defined.
strong - Rather than poorly explain it, have a look at Eric Lippert's article on the topic here
nominative - The name of the type is used to determine type equivalence (what this means is that two types with the same fields but different names are treated as different types)
partially inferred - The compiler can guess the type you are referring to during compile-time (this is the var
keyword in c#, which allows you to not specify the type in your code, although it's still determined at compile-time in a static and strong way)
edited Jan 3 at 22:12
answered Sep 13 '17 at 21:46
KolichikovKolichikov
1,5621729
1,5621729
add a comment |
add a comment |
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f46207205%2fwhat-is-typing-discipline%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Ie3PQ ZayHyluBd,ekV l,5SX2D