Skip to content
This repository was archived by the owner on Sep 15, 2022. It is now read-only.
This repository was archived by the owner on Sep 15, 2022. It is now read-only.

[ASC] Optional parameters should be undefined over null #15

@AuHau

Description

@AuHau

Currently, if generate for example this WIDL:

interface{
  storeChunk(data: bytes, stamp: string?): string
}

The generated code for the call has stamp: string | null, which makes it a practically required parameter in AssemblyScript. It would make sense with AssemblyScript/TypeScript semantic instead of null use undefined so the parameter could be truly optional.

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