purescript-event icon indicating copy to clipboard operation
purescript-event copied to clipboard

add note on why use of unsafePerformEffect is safe

Open safareli opened this issue 5 years ago • 2 comments

When you first look at definition of fix it's not clear why use of unsafePerformEffect is safe, would be great if an explanation is added

safareli avatar Jul 17 '19 08:07 safareli

Agreed, I'll be happy to merge a PR which adds a note along these lines.

paf31 avatar Jul 31 '19 00:07 paf31

Use of unsafePerformEffect is safe, as it's effects are not observable (i tried but i couldn't), but I can't really prove or explain well why it's like that.

safareli avatar Jul 31 '19 10:07 safareli