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

>= for optional arguments result in a "greater or equal" ligature #221

@hoichi

Description

@hoichi

Arguments of parameterized types, e.g., ~label=option<string>=? have >= in them, and that unfortunately results in a ligature in the fonts that support them. Probably some cases when those ligatures are displayed should be considered bugs (e.g., in VS Code with the new plugin > and = are different tokens), but I don't think it possible to fix it in all the places.

So my question is: can we do something about the syntax itself? For the case of option, it would be nice to have some sugar (why do we need an explicit option?), but that wouldn't solve array<int> or Foo.Bar.t<float>. Could we have, e.g.:

let make = (~stats?=array<int>) => ... 

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions