Bug 163713

Summary: Add convenience function that combines WTF::visit(...) with WTF::makeVisitor(...)
Product: WebKit Reporter: Sam Weinig <sam>
Component: New BugsAssignee: Sam Weinig <sam>
Status: RESOLVED FIXED    
Severity: Normal    
Priority: P2    
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch mitz: review+

Sam Weinig
Reported 2016-10-19 17:41:36 PDT
Add convenience function that combines WTF::visit(...) with WTF::makeVisitor(...)
Attachments
Patch (9.43 KB, patch)
2016-10-19 17:48 PDT, Sam Weinig
mitz: review+
Sam Weinig
Comment 1 2016-10-19 17:48:08 PDT
Sam Weinig
Comment 2 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(...).
Sam Weinig
Comment 3 2016-10-20 11:30:12 PDT
Note You need to log in before you can comment on or make changes to this bug.