gleam-lang / erlang

🐙 Extra code for when running on Erlang
Apache License 2.0
84 stars 35 forks source link

Add `erlang:display` #21

Open inoas opened 2 years ago

inoas commented 2 years ago

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)

Would you want me to do that?

lpil commented 2 years ago

Good idea. Yes please