W3C home > Mailing lists > Public > public-payments-wg@w3.org > January 2016

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

From: Adrian Hope-Bailie <notifications@github.com>
Date: Sat, 23 Jan 2016 13:16:58 -0800
To: w3c/webpayments <webpayments@noreply.github.com>
Message-ID: <w3c/webpayments/issues/64/174223193@github.com>
>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:
Received on Saturday, 23 January 2016 21:17:32 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 16:43:13 UTC