sneaky structural equality 🐍🧌 #8

Open
opened 2025-09-27 13:29:09 +02:00 by swrup · 1 comment
Contributor
open Prelude

let f = Fun.id
let f' = Fun.id
let l = [ f ]
let _b = List.mem f' l

There is a mem function in multiple module: List, Array, Hashtbl, ...

```ocaml open Prelude let f = Fun.id let f' = Fun.id let l = [ f ] let _b = List.mem f' l ``` There is a `mem` function in multiple module: `List`, `Array`, `Hashtbl`, ...
Owner

For Hashtbl, I believe this could be easily fixed by simpled hiding the Hashtbl module and only exposing Hashtbl.Make? For the others, what should we do, hide List.mem and encourage users to write List.exists instead?

For Hashtbl, I believe this could be easily fixed by simpled hiding the `Hashtbl` module and only exposing `Hashtbl.Make`? For the others, what should we do, hide `List.mem` and encourage users to write `List.exists` instead?
Sign in to join this conversation.
No Label
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: zapashcanon/prelude#8
No description provided.