MumbleCloseable

Brian Goetz brian.goetz at oracle.com
Tue Jun 25 06:55:24 PDT 2013


> [3] One possible name is MaybeCloseable, but I don't like that much
> because it suggests "maybe not closeable" which makes users wonder "OK,
> then how do I know if I can call close()?"  We want something that
> suggests you can always call close, but don't always have to.  Best
> suggestion so far is "AdvisoryCloseable" -- thanks Doug -- but taking
> additional suggestions.
>
> I suspect the hardest problem here is the name.  Which isn't a terrible
> place to be.

OptionallyCloseable?
DiscretionaryCloseable?

If we're willing to branch out beyond the "close" namespace, maybe:

OptionallyDisposible?



More information about the lambda-libs-spec-observers mailing list