What is "punning"?

I saw the word in the Dune style guide:

Introduce bindings that will allow opportunities for record or label punning.

What does it mean? Is it the same as destructuring?


Found the answer from realworldocaml. :joy:

1 Like

I tried to locate the point in the ocaml manual where this term is explained. Unfortunately the online manual here: OCaml - The OCaml Manual does not contain a full text search function so I was unable to find it. I remember it’s in the manual, though.

At least in 4.14 it’s only mentioned in the context of let-punning:

1 Like