FAQ

On Tue, Sep 1, 2015 at 10:42 PM, David Crawshaw wrote:
For results, if you're going to introduce a type how about

type PublishResult struct {
Successful bool
}

or alternatively:

type Window interface {
Publish() error
}

var ErrPublishFailed = ...
I should have been clearer. The boolean returned is not success or
failure; the call should always succeed. Similarly, an error doesn't
feel right.

Instead, that boolean indicates what the implementation guarantees
about a side effect of that call. The primary effect is to modify the
front buffer. A side effect is that the back buffer may or may not be
modified.

--
You received this message because you are subscribed to the Google Groups "golang-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to golang-dev+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Search Discussions

Discussion Posts

Previous

Follow ups

Related Discussions

Discussion Navigation
viewthread | post
posts ‹ prev | 6 of 7 | next ›
Discussion Overview
groupgolang-dev @
categoriesgo
postedAug 31, '15 at 12:24p
activeSep 2, '15 at 12:42a
posts7
users4
websitegolang.org

People

Translate

site design / logo © 2021 Grokbase