Skip to content

Any plans for function overload or multi-dispatch? #417

@al6x

Description

@al6x

Hi, I like your approach to build a language leveraging great parts of JS.

Wondering if you have any plans to add

  1. function overload

  2. multi-dispatch or extension methods? Basically it's the same as function overload but for multiple modules, so functions with same names defined in different modules would be overloaded properly.

Example

let add = (x: int, y: int): int => x + y

let add = (x: string, y: string): string => "hi" ++ x ++ y

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions