Displaying 7 results from an estimated 7 matches for "get_if_exists".
2015 Jan 08
5
RFC: getifexists() {was [Bug 16065] "exists" ...}
In November, we had a "bug repository conversation"
with Peter Hagerty and myself:
https://bugs.r-project.org/bugzilla/show_bug.cgi?id=16065
where the bug report title started with
--->> "exists" is a bottleneck for dispatch and package loading, ...
Peter proposed an extra simplified and henc faster version of exists(),
and I commented
> --- Comment #2
2015 Jan 08
4
RFC: getifexists() {was [Bug 16065] "exists" ...}
...ibility of confusion with S3
> methods, and users of other languages where "." is an operator find it a
> little strange.
>
> If you don't like lowerCamelCase (and a lot of people don't), then I
> think underscore_separated is the next best choice, so would use
> get_if_exists.
>
> Another possibility is to make no new name at all, and just add an
> optional parameter to get() (which if present acts as your value.if.not
> parameter, if not present keeps the current "object not found" error).
>
> Duncan Murdoch
>
>
> > My version of...
2015 Jan 08
0
RFC: getifexists() {was [Bug 16065] "exists" ...}
...ut there's still the possibility of confusion with S3
methods, and users of other languages where "." is an operator find it a
little strange.
If you don't like lowerCamelCase (and a lot of people don't), then I
think underscore_separated is the next best choice, so would use
get_if_exists.
Another possibility is to make no new name at all, and just add an
optional parameter to get() (which if present acts as your value.if.not
parameter, if not present keeps the current "object not found" error).
Duncan Murdoch
> My version of the help file {for both exists() and get...
2015 Jan 08
1
RFC: getifexists() {was [Bug 16065] "exists" ...}
...ibility of confusion with S3
> methods, and users of other languages where "." is an operator find it a
> little strange.
>
> If you don't like lowerCamelCase (and a lot of people don't), then I
> think underscore_separated is the next best choice, so would use
> get_if_exists.
>
> Another possibility is to make no new name at all, and just add an
> optional parameter to get() (which if present acts as your value.if.not
> parameter, if not present keeps the current "object not found" error).
>
> Duncan Murdoch
>
>
> > My version of...
2015 Jan 08
0
RFC: getifexists() {was [Bug 16065] "exists" ...}
...h S3
>> methods, and users of other languages where "." is an operator find it a
>> little strange.
>>
>> If you don't like lowerCamelCase (and a lot of people don't), then I
>> think underscore_separated is the next best choice, so would use
>> get_if_exists.
>>
>> Another possibility is to make no new name at all, and just add an
>> optional parameter to get() (which if present acts as your value.if.not
>> parameter, if not present keeps the current "object not found" error).
>>
>> Duncan Murdoch
>>...
2015 Jan 08
1
RFC: getifexists() {was [Bug 16065] "exists" ...}
...possibility of confusion with S3
> methods, and users of other languages where "." is an operator find it a
> little strange.
> If you don't like lowerCamelCase (and a lot of people don't), then I
> think underscore_separated is the next best choice, so would use
> get_if_exists.
> Another possibility is to make no new name at all, and just add an
> optional parameter to get() (which if present acts as your value.if.not
> parameter, if not present keeps the current "object not found" error).
> Duncan Murdoch
> > My version of the help file {...
2015 Jan 08
2
RFC: getifexists() {was [Bug 16065] "exists" ...}
...s, and users of other languages where "." is an operator find it a
>>> little strange.
>>>
>>> If you don't like lowerCamelCase (and a lot of people don't), then I
>>> think underscore_separated is the next best choice, so would use
>>> get_if_exists.
>>>
>>> Another possibility is to make no new name at all, and just add an
>>> optional parameter to get() (which if present acts as your value.if.not
>>> parameter, if not present keeps the current "object not found" error).
>>>
>>>...