Re: What do you think about Constraint modifiers?
"Charlie Poole" <[email protected]> Sat, 9 Aug 2008 08:33:11 -0700
| Newsgroups | gmane.comp.windows.dotnet.nunit.user |
|---|---|
| Message-ID | <005701c8fa35$3c043ae0$6401a8c0@ferrari> |
Hi Simone, I put us back on the list so others can comment as well. I'm sure we can figure out something else if we need to. Either way will take effort, so I thought I'd ask what people think it *should* look like first. Charlie _____ From: Simone Busoli [mailto:[email protected]] Sent: Saturday, August 09, 2008 12:39 AM To: Charlie Poole Subject: Re: [Nunit-users] What do you think about Constraint modifiers? Do you think it would be possible to set up a different mechanism for building constraints so that dealing with those modifiers becomes easier? On Sat, Aug 9, 2008 at 3:32 AM, Charlie Poole <[email protected]> wrote: In case you didn't know, those are the things that come after the main constraint and modify how it acts. Currently we have: .Within(...) .IgnoreCase .RespectCase .AsCollection .NoClip .Comparer(...) These are devilishly hard to get right in the syntax. For example, you can type Is.Null.IgnoreCase in the current code, which makes no sense. Before putting more time into this, I wanted to ask whether you use these and whether the current format works well. I know some people are bothered by a form that looks like a getter property modifying the state of the object, but you could also say it's just a new paradigm and get used to it. Obviously, if we abandoned the modifier syntax, we would need to find other ways to do the same stuf. Your thoughts? Charlie ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100 <http://moblin-contest.org/redirect.php?banner_id=100&url=/> &url=/ _______________________________________________ Nunit-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/nunit-users ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Nunit-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/nunit-users