DEV Community

Discussion on: A Type System

Collapse
 
peerreynders profile image
peerreynders

Given

Hegel is only JavaScript with types

and

an advanced static type checker

(i.e. Hegel is a tool rather than a language) it seems that comment syntax should be a "rather sooner than later" feature

  • to mitigate the risk of adoption
  • to make potentially lengthy type checking passes optional for regular red-green-refactor cycles. While this may sound weird from the static typing perspective this is what seems to be driving JSDoc TS adoption (TypeScript as a tool rather than a language or compiler).