Is Obj being deprecated in its entirety?

In Obj, there are now deprecation warnings all over (except on t and magic?)

I use Obj.t as a signifier of “typeless” object references in exceptions regularly. To me, it’s an ergonomic way to store “any value” in a var with some level of correctness (vs. Obj.magic which is basically throwing everything out the window). For debugging purposes, storing Obj.repr(whatever) as the “relevant exception source object” works well.

Apparently Obj.repr is now deprecated. I mean it’s trivial to roll my own, I’m just curious why this was done and if there’s anything else in the stdlib that I could use.

Could you give a full example?
We generally think the naming is bad and want to use something more descriptive, first and foremost.

Renaming suggestions for both the module and the functions you use are also welcome.

1 Like

I typically use JSON.t for unknown objects and unknown for things that I’ll never look at or only log

1 Like