PatternDispatch.jl
PatternDispatch.jl copied to clipboard
Method dispatch based on pattern matching for Julia
compatibility would be nice.
Syntax errors
``` julia julia> @pattern foo(:a) = println("aaaa") ERROR: recode: unimplemented: ex = :a julia> versioninfo() Julia Version 0.4.6 Commit 2e358ce* (2016-06-19 17:16 UTC) Platform Info: System: Darwin (x86_64-apple-darwin15.5.0) CPU: Intel(R)...
Hi, Is there a documentation talking about the source code like an API documentation? I am developing a structure like: Given that Const is a subtype of Exp f{T here...
[PackageEvaluator.jl](https://github.com/IainNZ/PackageEvaluator.jl) is a script that runs nightly. It attempts to load all Julia packages and run their tests (if available) on both the stable version of Julia (0.3) and the...
Trying to run first example from documentation gives error: ``` julia using PatternDispatch @pattern f(x) = x @pattern f(2) = 42 println({f(x) for x=1:4}) ``` ``` Warning: using Base.Meta in...
_This issue is being filed by a script, but if you reply, I will see it._ [PackageEvaluator.jl](https://github.com/IainNZ/PackageEvaluator.jl) is a script that runs nightly. It attempts to load all Julia packages...
Currently, you are providing an `isequal` method, but not `==`, for various types (e.g. `Pattern`). In Julia 0.3, you will _also_ need to provide `==`. See JuliaLang/julia#6833. (In Julia 0.2,...
Something like ``` @pattern f(x for x >= 0) = ... ``` but parsable as well as readable.
Not sure how this interacts with the rest of the machinery. Would it just be a way to generate more efficient code, or would it be useful also when writing...