Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add erlang:display #21

Open
inoas opened this issue Aug 10, 2022 · 1 comment
Open

Add erlang:display #21

inoas opened this issue Aug 10, 2022 · 1 comment
Assignees

Comments

@inoas
Copy link

inoas commented Aug 10, 2022

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: gleam-lang/stdlib#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
Copy link
Member

lpil commented Aug 10, 2022

Good idea. Yes please

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants