While there is io.debug, string.inspect in stdlib, in gleam_erlang there could be another debug function that is helpful when debugging underlaying erlang values such as this: https://github.com/gleam-lang/stdlib/issues/332
I'd suggest to just add in gleam: erlang.debug (prints to stdout, returns value) and erlang.inspect (returns string)
While there is
io.debug
,string.inspect
in stdlib, in gleam_erlang there could be another debug function that is helpful when debugging underlaying erlang values such as this: https://github.com/gleam-lang/stdlib/issues/332I'd suggest to just add in gleam:
erlang.debug
(prints to stdout, returns value) anderlang.inspect
(returns string)Would you want me to do that?