My super tiny helpers which may also help you. Let me present to you SimpleMatch.jl for nice inline dispatch, NotMacro.jl for using @not
instead of !
, and ProxyInterfaces.jl for quickly creating proxy types for Dicts
, Arrays
, etc..
Three tiny packages of mine, so tiny that they can be combined into one lightning talk:
SimpleMatch.jl is a super lightweight alternative to Match.jl. It simply reuses standard function dispatch syntax, but makes it available in a simple inline macro syntax which is much easier to read than defining inner functions.
NotMacro.jl solves the request that many coming from Python would really love to see not
being part of the normal syntax. NotMacro.jl gives you @not
to fill this gap.
ProxyInterfaces.jl is created around the idea of a Proxy. Say, you use Dict
a lot, but sometimes whish, your dictionary had a special extra feature, which the default one just does not have. ProxyInterfaces.jl let's you focus on creating such extra feature by automatically defining all standard Dict functions for your proxy type. It also supports Array
and other standard interfaces.