Skip to content

Simplify operators around Drop.valueOf (remove Comparable) #953

Description

@harttle

Problem

Comparable is too heavy for Drops: you must implement equals/gt/geq/lt/leq, or operators fall through to sync toValue() and ignore a partial equals. Built-ins stub four methods as no-ops. Async valueOf (#948) can't fit without breaking the custom operators API (toValue stays sync, #845).

Without a usable Drop path, this interface isn't worth keeping.

Proposal

  • Coerce operands via valueOf (awaitable in the generator path), then compare primitives
  • Remove public Comparable (keep empty/nil behavior internally if needed)
  • Break/redesign custom operators handlers for async-capable signatures

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions