News for hackers. Stuff that matters.
Re:CatalaLang/catala: Programming language for law specifica... by jrm4 on Sunday September 17, 2023 @02:07PM (#37547783)
Right, I mean, I've heard this use and I think it's kind of silly.

It's like calling a hopefully-completed-circuit in some device an "electric contract" or something like that.

Re:CatalaLang/catala: Programming language for law specifica... by layer8 on Sunday September 17, 2023 @02:51PM (#37548191)
It’s a contract (mutual agreement) between the client code and the implementation of the interface. The implementation fulfills certain obligations provided the client code fulfills certain other obligations. The interface defines what those obligations are. If the client code fails to meet its obligations, then the implementation of the interface isn’t bound to fulfill its obligations anymore either. The point is to think in terms of two parties, where the developer who is either using or implementing an interface takes on the role of one of the two contractual parties.
Re:CatalaLang/catala: Programming language for law specifica... by diogenes4 on Monday September 18, 2023 @03:07AM (#37553194)
What's wrong with describing a hopefully-completed-circuit in some device as a contract?