You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commonsrdf.apache.org by "Andy Seaborne (JIRA)" <ji...@apache.org> on 2015/05/07 10:42:59 UTC

[jira] [Commented] (COMMONSRDF-22) Rename getTriples/iterate to getTriplesAsStream/getTriplesAsIterable ?

    [ https://issues.apache.org/jira/browse/COMMONSRDF-22?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14532253#comment-14532253 ] 

Andy Seaborne commented on COMMONSRDF-22:
-----------------------------------------

It's a trade off on long names vs favouring the preferred forms.

IF we are going to have {{iterate()}}, then I think streams is still preferred in Java8 and so {{getTriples}} should remain the name.

> Rename getTriples/iterate to getTriplesAsStream/getTriplesAsIterable ?
> ----------------------------------------------------------------------
>
>                 Key: COMMONSRDF-22
>                 URL: https://issues.apache.org/jira/browse/COMMONSRDF-22
>             Project: Apache Commons RDF
>          Issue Type: Wish
>    Affects Versions: 0.1
>            Reporter: Alexandre Bertails
>            Priority: Minor
>              Labels: iterable, stream
>
> Alexandre Bertails suggested on [2015-05-06|http://mail-archives.apache.org/mod_mbox/commonsrdf-dev/201505.mbox/%3CCANvn8kzfnDoA%3DsgZLmHyN%3DbE2Gmba%3D1oNO0Haq72mi_GFkLRng%40mail.gmail.com%3E]:
> > # getTriples vs iterate
> >
> > Not a big deal but I believe the naming could be improved. When I read
> > getTriples, I expect to have all the triples in my hand, but this is
> > not quite what Streams are about. On the other hand, when I read
> > iterate, I kinda expect the opposite. Of course the types clarify
> > everything but I believe it'd be easier to use getTriplesAsStream and
> > getTriplesAsIterable.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)