TypL icon indicating copy to clipboard operation
TypL copied to clipboard

Compiler: basic transforms

Open getify opened this issue 5 years ago • 0 comments

  • Compiler insert parameter type assertions (and remove the annotations)

    function foo(x = int, y = bool`true`) { .. }
    

    function foo(x,y = true) { x = int`${x}`; y = bool`${y}`; .. }
    
  • Validate runtime type assertions (only literals) during checker

    • bool`1`; should error
    • Compiler remove any of these runtime assertions that are checker validated

getify avatar Feb 20 '19 03:02 getify