Printing runtime representation of a value#4
Conversation
|
I think |
|
@paf31 Oh, I'll take a look |
|
ok, makes sense. Maybe put this into an |
|
@paf31 I like that name (I mean the one that you gave) |
There was a problem hiding this comment.
s/dodgy/unsafe maybe? 😄
Also not sure about "runtime representation", how about just "display arbitrary values"?
There was a problem hiding this comment.
s/Dodgy/Unsafe/ makes sense.
Is something technically wrong with "runtime representation"? It seems like a good explanation of what happens there.
There was a problem hiding this comment.
No I think it's right, but I use the term in the PureScript book, and it's not quite the same thing. The way I've used it previously implies structure all the way to the leaves of the tree of values.
Printing runtime representation of a value
|
Thanks! |
I find that sometimes I need to do things like:
log $ unsafeCoerce { foo: bar, baz: qux }Might be useful to have a function for that, what do you think?
It feels kind of wrong to have
forall a. a -> ..... Perhaps it would make sense to put it into Unsafe module. On the other hand I can't come up with a case where doingconsole.log(something)would nuke anyone.