The author claims that by removing some type inference (lambdas and generic instantiation) you can reduce the amount of code required to implement type-checking.

  • Kogasa@programming.dev
    link
    fedilink
    arrow-up
    1
    ·
    edit-2
    9 months ago

    That’s quite the drawback. I’m not sure if I believe a large number of keywords would have a good effect on ergonomics

  • John@mastodon.social
    link
    fedilink
    arrow-up
    1
    ·
    9 months ago

    @armchair_progamer no mention of (mutual) recursion? It’s been a while since I worked on my type checker, but I thought that you needed to separate inference into unification variable generation and constraint solving so that you don’t fall into an infinite loop (each function asking the other functions type - forever).