[squeak-dev] The Inbox: System-dtl.1209.mcz
David T. Lewis
lewis at mail.msen.com
Tue Jan 5 17:24:42 UTC 2021
On Tue, Jan 05, 2021 at 01:17:50PM +0100, Marcel Taeumel wrote:
> Hi Dave.
>
> >??Provide vmParameterAt:default: to handle primitive failure on reading VM parameters.
>
> Hmm... #vmParameterAt:ifAbsent: would be "more idiomatic"?
>
I was not sure about this either. It tried "ifAbsent" and "onError"
but ifAbsent sounded too much like collection behavior, and onError
just looked strange. In the end I decided that what we are really
trying to do is supply a default in the case of a VM that does not know
about a VM parameter, so that's how I ended up with vmParameterAt:default:
Dave
More information about the Squeak-dev
mailing list
|