Added length for Set, IntSet and HashTable#454
Closed
friggeri wants to merge 1 commit intoJuliaLang:masterfrom
friggeri:a345a98c
Closed
Added length for Set, IntSet and HashTable#454friggeri wants to merge 1 commit intoJuliaLang:masterfrom friggeri:a345a98c
length for Set, IntSet and HashTable#454friggeri wants to merge 1 commit intoJuliaLang:masterfrom
friggeri:a345a98c
Conversation
Member
|
The idea was to use |
Author
|
I understand the idea behind this, but then it makes it impossible to write a comprehension with an unordered collection. As a prior, Python uses |
Member
|
I'll close this since I decided to take this suggestion even farther, and simplify things by only using length. |
Author
|
Great, thanks ! |
Member
|
For the record, I retroactively concur. |
KristofferC
pushed a commit
that referenced
this pull request
Jul 3, 2018
dependencis -> dependencies
NHDaly
added a commit
to NHDaly/julia
that referenced
this pull request
Dec 18, 2019
…uate arguments immediately. Add the ability to evaluate some parts of a `@spawn`/`@async` immediately, in the current thread context. This prevents variables being "boxed" in order to capture them in the closure, exactly the same as wrapping them in a let-block locally. For example, `$x` expands like this: ```julia julia> @macroexpand @async $x + 2 quote #= task.jl:361 =# let var"#JuliaLang#454" = x #= task.jl:362 =# local var"JuliaLang#9#task" = Base.Task((()->begin #= task.jl:358 =# var"#JuliaLang#454" + 2 end)) #= task.jl:363 =# if $(Expr(:islocal, Symbol("##sync#95"))) #= task.jl:364 =# Base.push!(var"##sync#95", var"JuliaLang#9#task") end #= task.jl:366 =# Base.schedule(var"JuliaLang#9#task") #= task.jl:367 =# var"JuliaLang#9#task" end end ```
JeffBezanson
pushed a commit
that referenced
this pull request
Dec 18, 2019
…immediately (#33119) Adds $-interpolation syntax to `@async` and `Threads.@spawn`, to evaluate arguments immediately. Add the ability to evaluate some parts of a `@spawn`/`@async` immediately, in the current thread context. This prevents variables being "boxed" in order to capture them in the closure, exactly the same as wrapping them in a let-block locally. For example, `$x` expands like this: ```julia julia> @macroexpand @async $x + 2 quote #= task.jl:361 =# let var"##454" = x #= task.jl:362 =# local var"#9#task" = Base.Task((()->begin #= task.jl:358 =# var"##454" + 2 end)) #= task.jl:363 =# if $(Expr(:islocal, Symbol("##sync#95"))) #= task.jl:364 =# Base.push!(var"##sync#95", var"#9#task") end #= task.jl:366 =# Base.schedule(var"#9#task") #= task.jl:367 =# var"#9#task" end end ```
KristofferC
pushed a commit
that referenced
this pull request
Apr 11, 2020
…immediately (#33119) Adds $-interpolation syntax to `@async` and `Threads.@spawn`, to evaluate arguments immediately. Add the ability to evaluate some parts of a `@spawn`/`@async` immediately, in the current thread context. This prevents variables being "boxed" in order to capture them in the closure, exactly the same as wrapping them in a let-block locally. For example, `$x` expands like this: ```julia julia> @macroexpand @async $x + 2 quote #= task.jl:361 =# let var"##454" = x #= task.jl:362 =# local var"#9#task" = Base.Task((()->begin #= task.jl:358 =# var"##454" + 2 end)) #= task.jl:363 =# if $(Expr(:islocal, Symbol("##sync#95"))) #= task.jl:364 =# Base.push!(var"##sync#95", var"#9#task") end #= task.jl:366 =# Base.schedule(var"#9#task") #= task.jl:367 =# var"#9#task" end end ```
cmcaine
pushed a commit
to cmcaine/julia
that referenced
this pull request
Nov 11, 2022
Keno
pushed a commit
that referenced
this pull request
Oct 9, 2023
This supports SSAValue args for cglobal while also fixing a bug in which a GotoIfNot ended up going to the wrong statement. The latter was a consequence of incorrect :call unnesting. Fixes #455 Fixes #454 Fixes #415 Fixes JuliaDebug/Debugger.jl#275 Improves #354
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The absence of
lengthfor those types caused errors when using comprehensions such as :