Skip to content

Proposal: all panicky functions should have a try_ version #10553

Open

Description

@emilk

There are a lot of functions in arrow that are "panic by default" - that is, a bad argument causes a panic.

I want to propose that we try to heed this design going forward:

  • Every function that can panic on bad input should have a # Panics section in its docstring (we mostly do this already)
  • Every function that can panic on bad input should have a try_ version of itself that instead returns a Result

Related

Activity

  1. etseidl commented on Aug 5, 2026

    @etseidl
    Contributor

    Related discussion #6737 and #6958

  2. 1 remaining item

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

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