Skip to content

Handle "impossible" intersections #5

Closed
@CarliJoy

Description

@CarliJoy

This issue is about handling an "impossible" intersection by static type checkers. We consider two cases:

It must be transformed to Never

Arguments in favor:

It is up to the type checker to reduce it or not

Arguments in favor:

  • @erictraut argues that the conditions are complex and expensive.
  • @erictraut argues in the context of reduction and normalization.
  • @CarliJoy argues that there are problems caused by inconsistent typing definitions in the standard library.

(Please edit this comment. I haven't gone through the whole issue to add links to everyone's arguments.)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions