Re:Reusable and type-safe options for Go APIs
by eternalban on Sunday October 22, 2017 @01:58PM
(#15528035)
Clearly a fluid API can not return a 2+ tuple as its results so the error issue you note is a non-issue.
The clean way to deal with errors in fluid APIs is to have a terminal .init() that returns an error (which can also specifically note which options are "illegal", etc.)
Interfaces are generally a better solution.