Bug 163713 - Add convenience function that combines WTF::visit(...) with WTF::makeVisitor(...)
Summary: Add convenience function that combines WTF::visit(...) with WTF::makeVisitor(...
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: New Bugs (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Sam Weinig
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-10-19 17:41 PDT by Sam Weinig
Modified: 2016-10-20 11:31 PDT (History)
0 users

See Also:


Attachments
Patch (9.43 KB, patch)
2016-10-19 17:48 PDT, Sam Weinig
mitz: review+
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Sam Weinig 2016-10-19 17:41:36 PDT
Add convenience function that combines WTF::visit(...) with WTF::makeVisitor(...)
Comment 1 Sam Weinig 2016-10-19 17:48:08 PDT
Created attachment 292133 [details]
Patch
Comment 2 Sam Weinig 2016-10-19 17:51:39 PDT
I went with WTF::switchOn(...) for this, but other names that were considered were:

    attend()
    walk()
    switchOver()
    route()
    choose()
    access()
    vary()
    match()
    pick()

My top two favorites were switchOn(...) and match(...).
Comment 3 Sam Weinig 2016-10-20 11:30:12 PDT
Committed r207627: <http://trac.webkit.org/changeset/207627>