[ prog / sol / mona ]

prog


Monads,Async/Await : Algebraic Effects in C99

34 2021-01-14 20:35

>>32
I guess that works (though you shouldn't litter the front page by pasting macro expansions). The second problem remains though.
Hard mode: get rid of the "<" and ">". I just want to write

puts(roll((0.5, "50% chance"),
          (0.2, "20% chance"),
          (OTHERWISE, "30% chance))).

Can Void-C do that?

69


VIP:

do not edit these