Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6987557
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T18:57:10+00:00 2026-05-27T18:57:10+00:00

Could someone please explain clearly and succinctly the concepts of language type systems? I’ve

  • 0

Could someone please explain clearly and succinctly the concepts of language type systems?
I’ve read a post or two here on type systems, but have trouble finding one that answers all my questions below.

I’ve heard/read that there are 3 type categorizations: dynamic vs static, strong vs weak, safe vs unsafe.

Some questions:

  • Are there any others?
  • What do each of these mean?
  • If a language allows you to change the type of a variable in runtime (e.g. a variable that used to store an int is later used to store a string), what category does that fall in?
  • How does Python fit into each of these categories?
  • Is there anything else I should know about type systems?

Thanks very much!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T18:57:11+00:00Added an answer on May 27, 2026 at 6:57 pm

    1) Apparently, there are others: http://en.wikipedia.org/wiki/Type_system

    2)

    Dynamic => Type checking is done during runtime (program execution) e.g. Python.

    Static (as opposed to Dynamic) => Type checking is done during compile time e.g. C++

    Strong => Once the type system decides that a particular object is of a type, it doesn’t allow it to be used as another type. e.g. Python

    Weak (as opposed to Strong) => The type system allows objects types to change. e.g. perl lets you read a number as a string, then use it again as a number

    Type safety => I can only best describe with a ‘C’ statement like:

    x = (int *) malloc (...);
    

    malloc returns a (void *) and we simply type-cast it to (int *). At compile time there is no check that the pointer returned by the function malloc will actually be the size of an integer => Some C operations aren’t type safe.

    I am told that some ‘purely functional’ languages are inherently type safe, but I do not know any of these languages. I think Standard ML or Haskell would be type safe.

    3) “If a language allows you to change the type of a variable in runtime (e.g. a variable that used to store an int is later used to store a string), what category does that fall in?”:

    This may be dynamic – variables are untyped, values may carry implicit or explicit type information; alternatively, the type system may be able to cope with variables that change type, and be a static type system.

    4) Python: It’s dynamically and strongly typed. Type safety is something I don’t know python (and type safety itself) enough to say anything about.

    5) “Is there anything else I should know about type systems?”: Maybe read the book @BasileStarynkevitch suggests?

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Could someone please explain the difference between the following two lines of code: 1.
I'm clearly missing something. Could someone please explain why this would happen? #define RANDOM_DEVICE
Could someone please explain what the difference is between these two examples? Class A
Could someone please explain when would I want to use delegation instead of inheritance?
Could someone please explain to me how to properly use the Anchors when creating
I wonder what a repository means in doctrine? Could someone please explain?
Could someone please help explain why I can't get this to work? I properly
Could someone who is familiar with webkit please explain or point me in the
I'm a little lost in general, but if someone could please briefly explain why
Please could someone explain to me why this regex does not match anything, when

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.