Skip to main content
15 events
when toggle format what by license comment
Sep 17, 2014 at 6:37 answer added candied_orange timeline score: 0
Sep 13, 2014 at 21:20 vote accept drawde83
Sep 13, 2014 at 4:32 history edited gnat CC BY-SA 3.0
edited tags
Sep 13, 2014 at 3:55 history edited drawde83 CC BY-SA 3.0
added 141 characters in body
Sep 13, 2014 at 3:34 history edited drawde83 CC BY-SA 3.0
expanded second paragraph.
Sep 13, 2014 at 1:46 answer added ruakh timeline score: 2
Sep 13, 2014 at 1:39 comment added Winston Ewert You need to seriously elaborate on your middle paragraph so we can understand what you are asking.
Sep 13, 2014 at 0:01 comment added psr Usually you return something representing the invalid state, that can be used to continue the chain later.
Sep 13, 2014 at 0:00 answer added Robert Harvey timeline score: 3
Sep 12, 2014 at 23:49 comment added Adam Lear The point of method chaining is that the result is always valid and can be acted on by the next method call. There shouldn't be such a thing as an invalid value. Can you expand on your use case? What are you actually trying to accomplish? Method chaining might be the wrong approach.
Sep 12, 2014 at 23:47 history edited Adam Lear CC BY-SA 3.0
added 2 characters in body; edited title
Sep 12, 2014 at 23:46 comment added drawde83 I'm mostly using php and python.
Sep 12, 2014 at 23:42 comment added user40980 What language is this in? I can think of possible approaches in languages that have some introspection of their calling environment (example perl's wantarray), however don't see this at all possible as something in more strict languages such as Java (unless you go through some impractical convolutions).
Sep 12, 2014 at 23:34 review First posts
Sep 15, 2014 at 14:15
Sep 12, 2014 at 23:29 history asked drawde83 CC BY-SA 3.0