Neal Gafter
Neal Gafter
See also https://github.com/RelationalAI-oss/Rematch.jl/issues/19 ``` julia> @match :(5+5) begin :($_ + $_) => true _ => false end ``` This should print `true` Slightly more generally, the pattern * `:(a +...
Match dictionaries with a syntax something like `{ key => pattern, ... }` where *key* is a constant (e.g. `1` or `"foo"`) or symbol (e.g. `:x`). Every key must exist...
From https://github.com/gafter/Rematch2.jl/pull/4#issuecomment-1523123644 When dealing with arrays, the generated code assumes one-based indexing which is fine for most cases, but to support packages like `OffsetArrays`, we should switch to `firstindex(a)` /...
@gdivis commented on [Fri Aug 21 2015](https://github.com/dotnet/roslyn/issues/4726) To reproduce, just use this code and make sure that DEBUG is set: ``` #if !DEBUG [Description(@" # text")] class Test { }...
In 9.7.2.3 we have > A method introduced in a class or struct hides all non-method base class members with the same name and all base class methods with the...
in https://github.com/gafter/AutoHashEqualsCached.jl/pull/1#discussion_r1150925015 @nystrom wrote: > I'd make this more robust and just skip `LineNumberNode`, expecting a struct (or wrapped struct) at the beginning of the block. Or you could apply...
@nystrom says in [a comment on JuliaServices/AutoHashEqualsCached.jl#1](https://github.com/gafter/AutoHashEqualsCached.jl/pull/1#pullrequestreview-1361575946): > Just FYI for when you process `Base.@kwdef`: fields in these structs can also be `:(=)` nodes with the field name and type...
When cacheing, rewrite existing inner ctors to use the inner ctor that is generated instead of new.
See https://github.com/RelationalAI-oss/MuttsInterface.jl/blob/master/src/MuttsInterface.jl for one way to do it.
According to the Julia documentation at https://docs.julialang.org/en/v1/manual/constructors/#man-inner-constructor-methods > If any inner constructor method is defined, no default constructor method is provided: it is presumed that you have supplied yourself with...
Some people would like to change whether or not they use the cache, but they need the hash function to be stable when they make that change. One way to...