[swift-evolution] [Review] SE-0006 Apply API Guidelines to the Standard Library
glessard at tffenterprises.com
Wed Jan 27 01:37:04 CST 2016
> On 27 janv. 2016, at 00:07, Dave Abrahams via swift-evolution <swift-evolution at swift.org> wrote:
> Does anybody on this list feel that "precondition" is too inaccessible?
I don’t, but I do like “require”. Unlike “precondition”, “require” is straightforward language. That particular use of “precondition” isn’t necessarily “pre”-anything; nothing prevents anyone from sticking a precondition() call just before returning from a function; then it becomes a weird misnomer. I am skeptical of “term of art” as a justification, because it is nearly a synonym of “jargon”, and that is not a good thing.
More information about the swift-evolution