DEV Community

Discussion on: TypeScript is a waste of time. Change my mind.

Collapse
 
stereobooster profile image
stereobooster • Edited

The biggest benefit of using a statically typed language is runtime type checks.

Read it outloud. Runtime checks e.g. dynamic type checking.

const validate (x) => {
  const i = parseFloat(x);
  return !isNaN(i);
}

Dynamic type checks are possible in dynamically typed languages.