Jim Lynch Codes
  • Blog
  • About Jim

Writings about one coder's stories & experiences.

Understanding Static Typing and Strong Typing

9/29/2016

0 Comments

 
This is one of those things that I seem to keep learning an then forgetting so I thought it would be a great topic for a blog post! The question here is, "What's the difference between static typing and strong typing?".

When Curiosity Brings You Down a Rabbit Hole

This is an interesting topic that came up when I started looking into working with Scala. Although when I almost always default to "thinking in   imperative code" I am a huge Clojure / ClojureScript fan and have been trying to get more into functional languages, especially those that are high performance and compile to JavaScript (hence why I was checking out the Scala.js page). Anyway, at the bottom of that page was a table with some curious information:
Picture
I'm also a huge fan of TypeScript (especially for Angular 2 and Node.js projects), and I was under the impression that TypeScript was a strongly typed language. However, in this chart above it states that TypeScript has "support for types" but not a "strong type system". Huh? What's going on here?

The Semantics of Strong and Static

A quick Google search for, "what's the difference between static typing and strong typing?" brings up a whole slew of information, including a few very informative stack overflow posts.

This stack overflow question:
 (http://stackoverflow.com/questions/2690544/what-is-the-difference-between-a-strongly-typed-language-and-a-statically-typed ) has a great #1 answer by Norman Ramsey. He explains how static typing refers to the types being checked at compile time. Interestingly, he says that there is no agreed upon definition for strongly typed although he notes that the most widely used definition for strong typing is that, "it is not possible for the programmer to work around the restrictions imposed by the type system".   

http://stackoverflow.com/questions/2351190/static-dynamic-vs-strong-weak

https://en.wikipedia.org/wiki/Type_system#STATIC

http://stackoverflow.com/questions/2690544/what-is-the-difference-between-a-strongly-typed-language-and-a-statically-typed

​https://www.scala-js.org/

var something = 1;
something = "Foo";
something = {"Something", 5.5};

int foo = 1;
System.out.print("My name is" + foo);

0 Comments

Your comment will be posted after it is approved.


Leave a Reply.

    ​Author

    Picture
    The posts on this site are written and maintained by Jim Lynch. About Jim...
    Follow @JimLynchCodes
    Follow @JimLynchCodes

    Want FREE access to
    my daily stock tips 
    ​newsletters??
    Sign up here:

    - Triple Gainers
    - Rippers N' Dippers
    - Growingest Growers
    ​

    Categories

    All
    Actionscript 3
    Angular
    AngularJS
    Automated Testing
    AWS Lambda
    Behavior Driven Development
    Blogging
    Business Building
    C#
    C / C++
    ClojureScript / Clojure
    Coding
    Community Service
    CS Philosophy
    Css / Scss
    Dev Ops
    Firebase
    Fitness
    Flash
    Front End
    Functional Programming
    Git
    Go Lang
    Haskell
    Illustrations
    Java
    Javascript
    Lean
    Life
    Linux
    Logic Pro
    Music
    Node.js
    Planning
    Productivity
    Professionalism
    Python
    React
    Redux / Ngrx
    Refactoring
    Reusable Components
    Rust
    Security
    Serverless
    Shell Scripting
    Swift
    Test Driven Development
    Things
    TypeScript
    Useful Sites
    Useful Tools
    Video
    Website Development
    WebStorm
    Writing

    Archives

    February 2021
    January 2021
    October 2020
    September 2020
    May 2020
    April 2020
    February 2020
    January 2020
    December 2019
    October 2019
    September 2019
    August 2019
    July 2019
    June 2019
    May 2019
    April 2019
    March 2019
    February 2019
    January 2019
    December 2018
    November 2018
    October 2018
    September 2018
    August 2018
    June 2018
    May 2018
    April 2018
    March 2018
    February 2018
    January 2018
    December 2017
    November 2017
    October 2017
    September 2017
    August 2017
    July 2017
    May 2017
    April 2017
    March 2017
    February 2017
    January 2017
    December 2016
    November 2016
    October 2016
    September 2016
    August 2016
    July 2016
    June 2016
    May 2016
    April 2016
    March 2016
    February 2016
    January 2016
    December 2015
    November 2015
    October 2015

    RSS Feed

  • Blog
  • About Jim
JimLynchCodes © 2021