Closed CumpsD closed 9 years ago
Option 2 feel more logical to me, since you can't tell which message was coming from Ok and which was from Fail, and most use case will display Fails on its own
Mixing Ok messages with fail messages seems like it'd make usability of the results much more complicated, as it wouldn't be obvious which messages were due to success and which due to fail, only that they switch part way through.
+1 @CumpsD - My thoughts exactly.
IIRC from the sample app, the messages for Ok
case were responsible to carry information about "events" that happened in the system - I'm not however sure what are the advantages of keeping them the same type as the Fail
messages
Seems you share option 2 :) No advantages, but this does:
Fail errs1, Fail errs2 -> Fail(errs1 @ errs2)
So you don't lose errs2
I'm for 2)
@CumpsD This is totally a bug. Good catch. The multiple failure messages should be getting merged together. As for merging the non-failing messages with the failing messages, I'm inclined to just drop the non-failing ones... but I think it's something that'll get sorted once we finally handle #17.
Shall I send a PR with the fix? On Apr 17, 2015 5:32 PM, "Paulmichael Blasucci" notifications@github.com wrote:
@CumpsD https://github.com/CumpsD This is totally a bug. Good catch. The multiple failure messages should be getting merged together. As for merging the non-failing messages with the failing messages, I'm inclined to just drop the non-failing ones... but I think it's something that'll get sorted once we finally handle #17 https://github.com/fsprojects/Chessie/issues/17.
— Reply to this email directly or view it on GitHub https://github.com/fsprojects/Chessie/issues/20#issuecomment-94022286.
There you go :)
Currently you have the following:
When looking at Scott his ROP implementation he has:
Could we change it in Chessie to either one of these two:
Option 1
This is identical to Scott's version
Option 2
On fail, don't take the Ok messages along