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

A solution to multiple arguments #1

Open
maurges opened this issue Apr 20, 2020 · 1 comment
Open

A solution to multiple arguments #1

maurges opened this issue Apr 20, 2020 · 1 comment

Comments

@maurges
Copy link

maurges commented Apr 20, 2020

There's a better way to log multiple things: creating variadic functions with typeclass tricks. Here's a quick and dirty mockup, I think there is a way to use less foreign stuffs:
https://gist.github.com/d86leader/53f8af28ea0a603cf0e846e1822415ee

Also, it's kind of sad that we have to universally qualify our logging arguments. I wish purescript's Show wasn't such useless garbage.

@jvliwanag
Copy link
Owner

Oh, that's very neat! Haven't seen that trick before.

As per the universal issue, I proposed a middleground alternative here -- purescript/purescript-console#24

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