Type Checking Paradigms - Deepstash
Type Checking Paradigms

Type Checking Paradigms

Curated from: en.wikipedia.org

Ideas, facts & insights covering these topics:

4 ideas

·

46 reads

2

Explore the World's Best Ideas

Join today and uncover 100+ curated journeys from 50+ topics. Unlock access to our mobile app with extensive features.

When type checking happens

When type checking happens

Type checking is a process that verifies if a variable is compatible with a certain operation. Depending on when it happens, there are two paradigms:

  • Static typing → which happens at compile-time and doesn't allow a variable to be reassigned values of different types because types are bound to variables. (Java, Go, C++, Typescript)
  • Dynamic typing → which happens at runtime and allows for variables to be reassigned values of different types because types are bound to values. (Python, Javascript, PHP, Perl)

3

11 reads

How type checking is done

How type checking is done

Depending on how the type checking is done, we have two paradigms:

  • Nominal typing → which determines compatibility based on a variable's type. (Java, C++, PHP, Perl)
  • Structural typing / Duck typing → which determines compatibility based on the set of attributes and methods of a variable. (Python, Go, Javascript, Typescript)

3

9 reads

If type coercion is done

If type coercion is done

Type coercion is the implicit type conversion from one data type to another. Depending on whether the language does it, we have two paradigms:

  • Weak typing → where the language does type coercion (Javascript, PHP, C)
  • Strong typing → where the language doesn't do type coercion and we must explicitly convert values from one data type to another. (Java, Go)

3

9 reads

IDEAS CURATED BY

ocpodariu

Alt account of @ocp. I use it to stash ideas about software engineering

Read & Learn

20x Faster

without
deepstash

with
deepstash

with

deepstash

Personalized microlearning

100+ Learning Journeys

Access to 200,000+ ideas

Access to the mobile app

Unlimited idea saving

Unlimited history

Unlimited listening to ideas

Downloading & offline access

Supercharge your mind with one idea per day

Enter your email and spend 1 minute every day to learn something new.

Email

I agree to receive email updates