Skip to content

from-just! with thunk for nothing case #5

@jackfirth

Description

@jackfirth

I'd like to take a maybe and unwrap it by running a thunk when it's a nothing. from-just works with a plain value instead of a thunk, while from-just! doesn't let me override the nothing behavior. I can work around this easily but it seems like something that should be built in.

An #:on-nothing keyword argument to from-just! would let me do this while remaining backward compatible and not adding a third from-just function.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions