[swift-evolution] Proposal proposal: @pure keyword

Michel Fortin michel.fortin at michelf.ca
Sat Jan 9 10:24:03 CST 2016


Le 9 janv. 2016 à 10:09, 品雪 <pinxue at gmail.com> a écrit :

> So you are talking about idempotence.
> 
> HTTP/1.1 defined it as:
> 
> Methods can also have the property of "idempotence" in that (aside from error or expiration issues) the side-effects of N > 0 identical requests is the same as for a single request.

I'm not so sure about this. By the above definition, making one request is the same thing as making two requests, but not necessarily the same as making zero requests. 

-- 
Michel Fortin
https://michelf.ca



More information about the swift-evolution mailing list