facebook / facebook/hhvm

Trait requirements using a comma

Open
#4,322 2 comments 1 reaction 0 assignees View on GitHub
feature request hack
Dominant language
C++
Stars
18.7k
Forks
3.1k
Avg merge
1h 47m
Merged PRs (30d)
2

Description

Currently this is not supported and you have to declare a requirement per line.

``` hack
trait ObserverAnnotation {
require implements Annotator;
require implements Subject;
}
```

Would be nice if you could comma separate them the same way you do extends and implements for a class.

``` hack
trait ObserverAnnotation {
require implements Annotator, Subject;
}
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.