Improve appearance of nullary members in console logs
OliverJAsh opened this issue · 1 comments
OliverJAsh commented
samhh commented
The most relevant issue is #44 and its fix #45. A less hacky solution would solve this but I couldn't think of anything else at the time that didn't have worse tradeoffs.
In Haskell-land you can't print
without a Show
instance. I know we're taking a similar approach on Web. It's not quite as ergonomic mind given the need to pass typeclass instances around.
It looks like we could do something like this on Node but I don't know about browsers:
> { [Symbol.for('nodejs.util.inspect.custom')]: () => 'foo' }
foo