code block showing the difference between consent and coersion

@phoebe@void.lgbt

Content warning: code block showing the difference between consent and coersion

💮 Ayu –

def consent(do_something, says_yes):
    if says_yes:
        do_something()
    else:
        pass # decision is final

def coerce(do_something, do_something_if_answer_is_no, says_yes):
    if says_yes:
        do_something()
    else:
        do_something_if_answer_is_no()