Created
February 14, 2012 14:50
-
-
Save mhinze/1827249 to your computer and use it in GitHub Desktop.
stupid first thoughts about some set ordering interface thing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public interface IOrderMe | |
{ | |
Order PreferredOrder(); | |
// or somethign like "void OrderMe(OrderContext relativeToOtherItems);" | |
} | |
public abstract class Order | |
{ | |
} | |
public class Ordinal : Order | |
{ | |
// something, int probably | |
} | |
public class Relative : Order | |
{ | |
// something, little DSL probably | |
} | |
public class Irrelevant : Order | |
{ | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment