Skip to content
This repository has been archived by the owner on Sep 20, 2021. It is now read-only.

feat(prelude) Add Some and None in a prelude #2

Merged
merged 2 commits into from
Aug 16, 2017

Conversation

Hywan
Copy link
Member

@Hywan Hywan commented Aug 16, 2017

The prelude is autoloaded by Composer, so that Hoa\Option\Some and
Hoa\Option\None are always loaded. It is possible to write this:

use function Hoa\Option\{Some, None};

$x = Some(42);
$y = None();

The prelude is autoloaded by Composer, so that `Hoa\Option\Some` and
`Hoa\Option\None` are always loaded. It is possible to write this:

```
use function Hoa\Option\{Some, None};

$x = Some(42);
$y = None();
```
@Hywan Hywan self-assigned this Aug 16, 2017
@Bhoat Bhoat merged commit 226b741 into hoaproject:master Aug 16, 2017
@coveralls
Copy link

coveralls commented Aug 16, 2017

Coverage Status

Coverage remained the same at 100.0% when pulling 226b741 on Hywan:prelude into c0e5813 on hoaproject:master.

1 similar comment
@coveralls
Copy link

Coverage Status

Coverage remained the same at 100.0% when pulling 226b741 on Hywan:prelude into c0e5813 on hoaproject:master.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Development

Successfully merging this pull request may close these issues.

3 participants