Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #19519
| References | <CAOFbRm+sJF=+hqkgHSzZ1WmEU6+SNPp5LcaY3xfZ_OFVioTkbQ@mail.gmail.com> <CABicbJK6mVOVO=4h+WNCq_rQyfX4RiOQMzMbN_HsNCeiW64Xdg@mail.gmail.com> <CAOFbRmK1HOYurh962S7_JFK6L8kBiUcj6pyihmT21cRbNXPk-w@mail.gmail.com> <CABicbJKwpG-Eo-5xEWD7yLQJcSqkA4JN0+UPp465b=YtBMW7Xg@mail.gmail.com> |
|---|---|
| Date | 2012-01-27 01:38 -0500 |
| Subject | Re: Constraints -//- first release -//- Flexible abstract class based validation for attributes, functions and code blocks |
| From | Nathan Rice <nathan.alexander.rice@gmail.com> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.5152.1327646328.27778.python-list@python.org> (permalink) |
> May I suggest a look at languages such as ATS and Epigram? They use > types that constrain values specifically to prove things about your > program. Haskell is a step, but as far as proving goes, it's less > powerful than it could be. ATS allows you to, at compile-time, declare > that isinstance(x, 0 <= Symbol() < len(L)) for some list L. So it > might align well with your ideas. Thanks for the tip. >>> Probably deserves a better name than "constraintslib", that makes one >>> think of constraint satisfaction. >> >> As you can probably tell from my other projects, I'm bad at coming up >> with snappy names. > > I'm bad at doing research on previous projects ;) I guess I'm not plugging my other projects enough... You should check out elementwise. Thanks, Nathan
Back to comp.lang.python | Previous | Next — Next in thread | Find similar | Unroll thread
Re: Constraints -//- first release -//- Flexible abstract class based validation for attributes, functions and code blocks Nathan Rice <nathan.alexander.rice@gmail.com> - 2012-01-27 01:38 -0500 Re: Constraints -//- first release -//- Flexible abstract class based validation for attributes, functions and code blocks Jon Clements <joncle@googlemail.com> - 2012-01-27 13:59 -0800
csiph-web