Skip to content

Mysterious complexity annotations for compose #722

@sjakobi

Description

@sjakobi

Here's an example from Data.Map.Lazy:

image

When I first saw this, I was a bit mystified.

  • Does ab mean a * b?
  • Does |ab| mean something like abs(ab)?

I now suspect that |ab| is supposed to be the size of the (Map a b) argument, but that took me a while.

Other functions nearby generally use m and n for the sizes of their arguments. Arguably that could be made clearer too. Nevertheless I think consistency with the surrounding code might be clearer than this kind of exceptional convention.

@alexfmpe Thoughts?

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