Re: [webpayments] PROPOSAL: The PaymentRequest object will not have code attached to it. It will be a pure data object. (#64)

>So a developer could, if they wanted, check the state before calling cancel, but if they don't, the system will just throw an exception.

This feels like we are developing an API that will encourage developers to use exceptions for flow control. i.e. A violation of the [Principal of Least Astonishment](http://c2.com/cgi/wiki?PrincipleOfLeastAstonishment)

---
Reply to this email directly or view it on GitHub:
https://github.com/w3c/webpayments/issues/64#issuecomment-174223193

Received on Saturday, 23 January 2016 21:17:32 UTC