ocamlearlybird icon indicating copy to clipboard operation
ocamlearlybird copied to clipboard

Better opaque/abstract value inspection

Open hackwaly opened this issue 1 year ago • 2 comments

I tested utop example. It displays "some_values" perfectly. I don't know how it works. Maybe we can learn how it achieved.

https://github.com/ocaml-community/utop/blob/8cc563282597abdb8f5cca64df41166c5ebca6b5/examples/interact/test_program.ml#L1-L11

image

hackwaly avatar Jan 20 '24 17:01 hackwaly

Is it really abstract/opaque there though?

sim642 avatar Jan 20 '24 18:01 sim642

I think it is.

type value = V : string * _ -> value

val interact
  :  ?search_path:string list
  -> ?build_dir:string
  -> unit:string
  -> loc:(string * int * int * int)
  -> values:value list
  -> unit
  -> unit

hackwaly avatar Jan 21 '24 02:01 hackwaly