Neal Gafter
Neal Gafter
Summary: Implement the scalar operator LOG1P for log(1 + x) And the corresponding elementwise matrix operator MATRIX_LOG1P Reviewed By: ericlippert Differential Revision: D38923743
As suggested in https://github.com/JuliaServices/Match.jl/issues/96#issuecomment-1767516997, support some syntax like `@ismatch (vars=A,B,C) [10,9,8] ( ...` to list the variables to be assigned at the start of the block e.g. such that unmatched...
See the documentation about "active patterns" in [MLStyle](https://thautwarm.github.io/MLStyle.jl/latest/syntax/pattern.html#active-patterns) and [F#](https://learn.microsoft.com/en-us/dotnet/fsharp/language-reference/active-patterns). We should consider supporting those.
in [MLStyle](https://thautwarm.github.io/MLStyle.jl/latest/), a guard is written ```julia @match e begin pattern && if condition end => value end ``` We should support that as well.
See this part of an automaton: ``` Node 33 5: («input_value» isa Tuple && «length(input_value)» := length(«input_value») && «length(input_value)» >= 2 && «input_value[-1]» := «input_value»[-1] && «where_0» := e.q1 &&...
Share evaluated results for guard expressions that differ only by line number nodes. Similarly, we should consider sharing when identical by alpha-renaming.
The following test is not correct: ```julia if VERSION >= v"1.8" @testset "warn for unreachable cases" begin let line = (@__LINE__) + 4 @test_warn( "$file:$line: Case 2: `Foo(1, 2) =>`...
[From the `Match.jl` documentation](http://kmsquire.github.io/Match.jl/latest/#Matching-Exprs-1) we have: > The following function is a nice example of matching expressions. It is used in `VideoIO.jl` to extract the names of expressions generated by...
I would be nice if quoted forms could be used in matches: ```julia expr = :(function f(x); x; end) @assert (@match expr begin :(function fname(_...); _...; end) => fname end)...