Skip to content

Introduce a factory to build proofs #69

@Baptouuuu

Description

@Baptouuuu

This factory would be passed as argument to the callable passed in Application::tryToProve().

It would look like this:

Application::new([])
    ->tryToProve(static function($factory) {
        yield $factory->proof(
            'name',
            given($set),
            static fn($assert, $value) => null,
        );
    });

And existing functions should now be deprecated.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions