CLOVIS
08/20/2026, 9:35 AMYoussef Shoaib [MOD]
08/20/2026, 9:37 AMaccumulate tab that's there already)simon.vergauwen
08/20/2026, 10:17 AMEither<E, A> = either { to compare it to Raise but I would make all (?) cases where Raise is the extension receiver into a context parameter.CLOVIS
08/20/2026, 2:02 PMCLOVIS
08/20/2026, 2:02 PMsimon.vergauwen
08/20/2026, 2:11 PMIf I submit a PR using context parameters, how much can I change from the current pages?As much as you feel is needed for it to be more beneficial to the community ☺️
CLOVIS
08/20/2026, 2:12 PMCLOVIS
08/20/2026, 2:12 PMsimon.vergauwen
08/20/2026, 2:13 PMCLOVIS
08/24/2026, 7:10 PMCLOVIS
08/24/2026, 7:11 PMYoussef Shoaib [MOD]
08/24/2026, 7:18 PMraise context param named. I believe it's unlikely that one will be passing raise instances around explicitly, and in that instance, they can choose to name the parameter or use contextOf. However, there's a minor advantage to this which is that callers can use Explicit Context Arguments (I.e. pass it by name). I think it's fine either way, but I personally use _: Raise all the time.
• accumulate { } could be replaced with context(_: Accumulate<Error>. But, It's still experimental, so I'm happy with accumulate { } for nowCLOVIS
08/24/2026, 7:20 PMCLOVIS
08/24/2026, 7:21 PMYoussef Shoaib [MOD]
08/24/2026, 7:32 PMensure<Foo>(condition) { someFooValue } instead of naming the specific raise.
I think _: Raise helps communicate the effect-iness of it more?
FWIW, Alejandro said on his blog:
Raise should never be the spotlight, it just provides additional convenience for describing non-happy paths. On a separate note, this group is for me the only one in which using unnamed context parameters (_) is advisable.
Although that might've been before explicit context arguments
CLOVIS
08/24/2026, 7:45 PMCLOVIS
08/24/2026, 7:45 PM_ thenCLOVIS
08/24/2026, 7:45 PM_: Raise<E> very pretty and there's a chance it might irk people more than raise: Raise<E> ?Youssef Shoaib [MOD]
08/24/2026, 7:50 PMraise1, raise2 feels like a step back.
It's really just bike shedding though. I'd say use raise: Raise for now, and we can always Find and Replace it if we want to latersimon.vergauwen
08/25/2026, 6:44 AMAccumulate which covers all accumulating use-cases pretty nicely. github.com/nomisRev/ktor-arrow-example/compare/website?expand=1
Also made this PR in Arrow-kt to improve the AP (unreleased).