Using the 'Interface' suffix on interface names.

399 views
Skip to first unread message

Andrew Carter

unread,
Feb 20, 2016, 12:11:51 PM2/20/16
to PHP Framework Interoperability Group
Hello,

There's currently a discussion taking place in the working group for what will hopefully soon be the event loop proposal.

The discussion is regarding whether to use the 'Interface' suffix on the event loop interface: https://github.com/async-interop/event-loop/issues/5

I would be very interested to hear the opinions of the FIG on this topic - and any further arguments for and against.

Many Thanks,

Andrew


Larry Garfield

unread,
Feb 20, 2016, 12:49:52 PM2/20/16
to php...@googlegroups.com
http://www.php-fig.org/bylaws/psr-naming-conventions/

Suffix is required.

--Larry Garfield

Michael Cullum

unread,
Feb 21, 2016, 12:59:55 PM2/21/16
to FIG, PHP
Larry,

I think what Andrew is proposing is we review whether or not that part of the bylaw needs review. I'd say that was certainly something that could be done, particularly in the instance of Exceptions (PSR-6 accidentally violates this bylaw).

--
Michael C



--
You received this message because you are subscribed to the Google Groups "PHP Framework Interoperability Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to php-fig+u...@googlegroups.com.
To post to this group, send email to php...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/php-fig/56C8A736.6060008%40garfieldtech.com.

For more options, visit https://groups.google.com/d/optout.

Chuck Burgess

unread,
Feb 22, 2016, 8:31:56 PM2/22/16
to php...@googlegroups.com
I have to guess that was an oversight when the bylaw was drafted.  As best I can remember, the Exception interface has always been an exception with regard to the prefix/suffix naming.  While FIG went with Abstract prefix and Interface suffice, earlier iterations of the discussion in other circles sometimes chose Abstract and Interface both to be suffixes.  However, in all cases that I recall, the Exception interface would not be suffixed. 

See (https://wiki.php.net/pear/rfc/pear2_class_naming) for one such discussion, which has several others linked at its bottom.

Michael Cullum

unread,
Feb 22, 2016, 9:02:34 PM2/22/16
to FIG, PHP
My suggestion would be we can remove this from the bylaws and then it becomes an point that can be decided on in a case-by-case basis.

--
Michael C

Richard Fussenegger

unread,
Feb 23, 2016, 12:54:49 PM2/23/16
to PHP Framework Interoperability Group
On Tuesday, February 23, 2016 at 3:02:34 AM UTC+1, Michael Cullum wrote:
My suggestion would be we can remove this from the bylaws and then it becomes an point that can be decided on in a case-by-case basis.

--
Michael C

+1, the interface suffix is an abomination. 

Daniel Plainview

unread,
May 21, 2016, 5:54:47 PM5/21/16
to PHP Framework Interoperability Group
I can't agree more with opinions above.

Suffix is the most painful part of PSRs and I think it was a mistake.

I wonder if it's possible to rethink that bylaw in the future and deprecate existing PSRs in favour of new ones without suffix.
Reply all
Reply to author
Forward
0 new messages