Thanks, that's an extremely helpful explanation. The VideoIO.jl example is great.
On Sunday, September 14, 2014 10:54:23 AM UTC-5, Kevin Squire wrote: > > Sorry, I got sidetracked with the rest of the discussion and forgot to > come back to this until now. > > On Fri, Sep 12, 2014 at 5:48 PM, Gray Calhoun <gcal...@iastate.edu > <javascript:>> wrote: >> >> Thanks, that's pretty cool. For simple cases like I'm using, do you know >> if there are advantages (or disadvantages) to using Match.jl, or should I >> just view it as a nicer syntax? (Obviously, when things get more >> complicated Match.jl looks very appealing). >> > [...] > I used Match.jl quite extensively to match and rewrite Exprs when > wrapping VideoIO. A clean Expr match example is > https://github.com/kmsquire/VideoIO.jl/blob/master/util/wrap_libav_split.jl#L215-L226. > > You can search in the rest of that file for examples of Expr rewriting. >