monte icon indicating copy to clipboard operation
monte copied to clipboard

safety risk of .fetch/2

Open dckc opened this issue 8 years ago • 3 comments

<simpson> I feel like we need a space for documenting POLA maybe-not-safe-but-nobody-has-really-shown-a-good-PoC stuff.
<DanC_> PoC = proof of concept?
<simpson> Yeah.
 Stuff like .fetch/2 on Maps.
<DanC_> oh.
<DanC_> yes, the risk around .fetch/2 merits documenting. I'm raising an issue

dckc avatar Apr 26 '17 17:04 dckc

What is the safety risk or POLA violation of .fetch/2 ?

erights avatar May 03 '17 04:05 erights

Something about f keeping a reference to k after m.fetch(k, f) I think.

dckc avatar May 03 '17 04:05 dckc

http://wiki.erights.org/wiki/POLA_fetch

dckc avatar Jul 14 '17 21:07 dckc