3 ms·
Your first two points are also met by optionally typed languages.
by jlg23 10y ago
Your first two points are also met by optionally typed languages.
- shrugger 10y agoOh yeah, because those are a dime a dozen and available almost everywhere! /s
- phamilton 10y agoI'd argue that optionally typed languages are dynamically typed. Typescript at runtime is dynamically typed, same with Erlang. Perhaps not always true, but usually the type system provides static analysis which is help but not sufficient to provide guarantees.
- MaulingMonkey 10y agoDynamic typing and static typing can coexist in the same language. C# is generally statically typed, but the more recent versions support the dynamic keyword - at which point you're statically typing things to be dynamically typed. Typescript of course goes the other way - adding static typing features to otherwise dynamically typed Javascript. ...the first thing I do when encountering JSON in TypeScript these days is to add type definitions to describe the schema. If I have a hard time describing the schema to TypeScript, I'm going to have an even worse time trying to keep it straight myself.