Skip to content

add hasContent to output#6

Open
nsams wants to merge 1 commit into1.0from
add-has-content
Open

add hasContent to output#6
nsams wants to merge 1 commit into1.0from
add-has-content

Conversation

@nsams
Copy link
Member

@nsams nsams commented Dec 12, 2018

alternative to #5

@nsams
Copy link
Member Author

nsams commented Dec 13, 2018

@mike-tuxedo was sagst du dazu?

@rabengraph
Copy link
Contributor

statt 'hasContent' -> 'exists': boolean oder 'empty': boolean, der Kontext 'content' ist überflüssig in einer Content API.

empty gefällt mir besser weil im client will man nicht immer prüfen ob ein Content da ist ('hasContent'), sondern in wenigen Fällen interessiert mich ob kein Content da ist. In diesen Fällen prüf ich 'empty' auf true.

@mike-tuxedo
Copy link

@rabengraph , deinen Einwand finde ich grundsätzlich richtig. Aber da wir in unseren PHP-Webs hasContent() verwenden, finde ich das einfacher. Einfach weil man das schon kennt und wahrscheinlich als erstes probiert zu verwenden, wenn man wissen will ob Content vorhanden ist.

@nsams
Copy link
Member Author

nsams commented Dec 17, 2018

Mir is beides recht....

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants