# \#proposal

**URL:** https://discourse.julialang.org/tag/proposal/5.md?match_all_tags=true&page=4&tags%5B%5D=proposal

[Latest](https://discourse.julialang.org/latest.md) · [Categories](https://discourse.julialang.org/categories.md) · [Tags](https://discourse.julialang.org/tags.md)

**Page:** 5

---

## [Proposal for ∈ isa type syntax](https://discourse.julialang.org/t/proposal-for-isa-type-syntax/24667)

<div class="topic-metadata">

**Author:** [@chakravala](https://discourse.julialang.org/u/chakravala)\
**Replies:** 31\
**Last updated:** [June 4, 2019, 2:54pm UTC](https://discourse.julialang.org/t/proposal-for-isa-type-syntax/24667 "2019-06-04T14:54:51Z")

</div>

This is a proposal to extend Base.in with the isa method: julia\> Base.in(::T,t::DataType) where T = T\<:t julia\> 1 ∈ Int true julia\> 1 ∈ Float64 false or alternatively Base.in(v,t::DataType) = v isa t Would this be …

---

## [How to tell which package is holding back which package](https://discourse.julialang.org/t/how-to-tell-which-package-is-holding-back-which-package/24827)

<div class="topic-metadata">

**Author:** [@yakir12](https://discourse.julialang.org/u/yakir12)\
**Replies:** 1\
**Last updated:** [June 1, 2019, 8:10am UTC](https://discourse.julialang.org/t/how-to-tell-which-package-is-holding-back-which-package/24827 "2019-06-01T08:10:03Z")

</div>

I’m having unsatisfiable requirements problems. It would be great to see which package is holding back which package. Regardless of the unsatisfiable requirements, it would be cool to know which packages are holding bac…

---

## [Allowing arguments on many places in function name](https://discourse.julialang.org/t/allowing-arguments-on-many-places-in-function-name/24617)

<div class="topic-metadata">

**Author:** [@baggepinnen](https://discourse.julialang.org/u/baggepinnen)\
**Replies:** 2\
**Last updated:** [May 27, 2019, 2:12am UTC](https://discourse.julialang.org/t/allowing-arguments-on-many-places-in-function-name/24617 "2019-05-27T02:12:48Z")

</div>

Here’s a goofy topic for a rainy Sunday. I was pondering this morning how it would look if a function could accept arguments in more than one place, like the following (needle)occursin(haystack) rather than the current …

---

## [@threads in array comprehension](https://discourse.julialang.org/t/threads-in-array-comprehension/24072)

<div class="topic-metadata">

**Author:** [@samo](https://discourse.julialang.org/u/samo)\
**Replies:** 11\
**Last updated:** [May 11, 2019, 3:48pm UTC](https://discourse.julialang.org/t/threads-in-array-comprehension/24072 "2019-05-11T15:48:28Z")

</div>

This is just a feature suggestion. It would be nice it the @threads macro would work also inside array comprehensions as: \[i @threads for i=1:4\] I.e. that example should produce the same result as: julia\> \[i for i=1:4…

---

## [ICT-48-2020: Towards a vibrant European network of AI excellence centres](https://discourse.julialang.org/t/ict-48-2020-towards-a-vibrant-european-network-of-ai-excellence-centres/24081)

<div class="topic-metadata">

**Author:** [@bkamins](https://discourse.julialang.org/u/bkamins)\
**Replies:** 0\
**Last updated:** [May 10, 2019, 3:31pm UTC](https://discourse.julialang.org/t/ict-48-2020-towards-a-vibrant-european-network-of-ai-excellence-centres/24081 "2019-05-10T15:31:08Z")

</div>

Hi, On 28 May 2019 I will be a representative from Poland during H2020 Call on European Network of Artificial Intelligence Excellence Centres: Information and Brokerage day. The meeting is a preparation for “ICT-48-202…

---

## [Statistical allocation profiling](https://discourse.julialang.org/t/statistical-allocation-profiling/23816)

<div class="topic-metadata">

**Author:** [@tkluck](https://discourse.julialang.org/u/tkluck)\
**Replies:** 1\
**Last updated:** [May 4, 2019, 7:49am UTC](https://discourse.julialang.org/t/statistical-allocation-profiling/23816 "2019-05-04T07:49:29Z")

</div>

Hey all! I just posted a WIP pull request for adding statistical profiling for allocations. The idea is that, instead of tracking all allocations using julia --track-allocation \[1\], which slows down code execution sign…

---

## [Documenting performance model of \`empty!\`, \`sizehint!\`, \`push!\` & friends](https://discourse.julialang.org/t/documenting-performance-model-of-empty-sizehint-push-friends/23544)

<div class="topic-metadata">

**Author:** [@Tamas\_Papp](https://discourse.julialang.org/u/Tamas_Papp)\
**Replies:** 14\
**Last updated:** [May 2, 2019, 4:56am UTC](https://discourse.julialang.org/t/documenting-performance-model-of-empty-sizehint-push-friends/23544 "2019-05-02T04:56:02Z")

</div>

It is a common idiom to allocate some mutable container, push! or append! values into it, optionally by providing a sizehint!, then resize or empty! it, and reuse between runs. This leads to performant code with little …

---

## [Local using declaration](https://discourse.julialang.org/t/local-using-declaration/23615)

<div class="topic-metadata">

**Author:** [@kim366](https://discourse.julialang.org/u/kim366)\
**Replies:** 1\
**Last updated:** [April 28, 2019, 8:36am UTC](https://discourse.julialang.org/t/local-using-declaration/23615 "2019-04-28T08:36:51Z")

</div>

In C++ you often do something like this: { using std::begin; using std::end; std::sort(begin(x), end(x)); } In Julia, when you have let using .Iterators: take take(\[1, 2, 3\], 2) |\> collect end Thi…

---

## [Should Dates.Period be a subtype of Integer](https://discourse.julialang.org/t/should-dates-period-be-a-subtype-of-integer/23465)

<div class="topic-metadata">

**Author:** [@yakir12](https://discourse.julialang.org/u/yakir12)\
**Replies:** 5\
**Last updated:** [April 24, 2019, 8:17pm UTC](https://discourse.julialang.org/t/should-dates-period-be-a-subtype-of-integer/23465 "2019-04-24T20:17:08Z")

</div>

Because of how IntervalSets calculates a “duration”, I went into a short rabbit hole of why aren’t all the types of Dates considered as subtypes of Integers (see here for the instigator). The main reason is that periods…

---

## [RFQ: InplaceLinalg](https://discourse.julialang.org/t/rfq-inplacelinalg/23195)

<div class="topic-metadata">

**Author:** [@davidavdav](https://discourse.julialang.org/u/davidavdav)\
**Replies:** 9\
**Last updated:** [April 18, 2019, 11:49am UTC](https://discourse.julialang.org/t/rfq-inplacelinalg/23195 "2019-04-18T11:49:01Z")

</div>

Hello, We’ve noticed that the broadcasting assignment operator .= does a good job in in-place assignment of the LHS in some cases, but not so in others. I suppose .= is really about broadcasting, and not about in-place…

---

## [In case of method ambiguity, choose method with tighter first argument](https://discourse.julialang.org/t/in-case-of-method-ambiguity-choose-method-with-tighter-first-argument/23096)

<div class="topic-metadata">

**Author:** [@piever](https://discourse.julialang.org/u/piever)\
**Replies:** 5\
**Last updated:** [April 14, 2019, 3:09pm UTC](https://discourse.julialang.org/t/in-case-of-method-ambiguity-choose-method-with-tighter-first-argument/23096 "2019-04-14T15:09:48Z")

</div>

I was wondering whether in principle one could mostly get rid of method ambiguities by adding simple rules like “in case of ambiguity, the method with the most specific first argument wins (if the first argument is equal…

---

## [! notation for individual modified variables](https://discourse.julialang.org/t/notation-for-individual-modified-variables/9653)

<div class="topic-metadata">

**Author:** [@Robert\_Honig](https://discourse.julialang.org/u/Robert_Honig)\
**Replies:** 39\
**Last updated:** [April 11, 2019, 11:47am UTC](https://discourse.julialang.org/t/notation-for-individual-modified-variables/9653 "2019-04-11T11:47:16Z")

</div>

I’m a big fan of the ! style recommendation for functions that modify their parameters. For certain functions with many arguments, functionname!(foo, bar, baz) can be ambiguous: How do I know if foo, bar or baz gets mod…

---

## [First Impressions](https://discourse.julialang.org/t/first-impressions/22318)

<div class="topic-metadata">

**Author:** [@FRgs](https://discourse.julialang.org/u/FRgs)\
**Replies:** 37\
**Last updated:** [April 7, 2019, 7:06am UTC](https://discourse.julialang.org/t/first-impressions/22318 "2019-04-07T07:06:02Z")

</div>

Hi, all. Thanks go to all who have worked on Julia. It is appreciated. Julia, from the first looks on the website and while looking for information, looked like a language I might just use generally and for data. It is…

---

## [Request for comment: package for scientific and mathematical constants](https://discourse.julialang.org/t/request-for-comment-package-for-scientific-and-mathematical-constants/4155)

<div class="topic-metadata">

**Author:** [@fasiha](https://discourse.julialang.org/u/fasiha)\
**Replies:** 31\
**Last updated:** [April 4, 2019, 10:16pm UTC](https://discourse.julialang.org/t/request-for-comment-package-for-scientific-and-mathematical-constants/4155 "2019-04-04T22:16:53Z")

</div>

I’m refactoring some of our code and am wondering what to do with a few scientific constants we use, like speed of light, permittivity of free space, and the like. I was intrigued to see a stand-alone package, Tau.jl but…

---

## [Make struct definition return the defined type](https://discourse.julialang.org/t/make-struct-definition-return-the-defined-type/22741)

<div class="topic-metadata">

**Author:** [@jw3126](https://discourse.julialang.org/u/jw3126)\
**Replies:** 3\
**Last updated:** [April 4, 2019, 3:04pm UTC](https://discourse.julialang.org/t/make-struct-definition-return-the-defined-type/22741 "2019-04-04T15:04:29Z")

</div>

Currently a struct definition returns nothing: julia\> x = struct Foo end julia\> x === nothing true How about it returning the defined type instead? julia\> x = struct Foo end julia\> x === Foo true Why would this beh…

---

## [Testing for scalar indexes from to\_indices](https://discourse.julialang.org/t/testing-for-scalar-indexes-from-to-indices/22534)

<div class="topic-metadata">

**Author:** [@Tamas\_Papp](https://discourse.julialang.org/u/Tamas_Papp)\
**Replies:** 0\
**Last updated:** [March 30, 2019, 10:52am UTC](https://discourse.julialang.org/t/testing-for-scalar-indexes-from-to-indices/22534 "2019-03-30T10:52:43Z")

</div>

I wonder if there is an API for testing if something returned by to\_indices is a “scalar” index (ie one that would drop dimensions). I could not find anything, and I think it would be useful to have, and thought I would …

---

## [Function to check all arguments are the same and return their value](https://discourse.julialang.org/t/function-to-check-all-arguments-are-the-same-and-return-their-value/21253)

<div class="topic-metadata">

**Author:** [@mfsch](https://discourse.julialang.org/u/mfsch)\
**Replies:** 12\
**Last updated:** [March 15, 2019, 8:45pm UTC](https://discourse.julialang.org/t/function-to-check-all-arguments-are-the-same-and-return-their-value/21253 "2019-03-15T20:45:44Z")

</div>

I’ve observed that I often encounter this pattern where I have several ways of getting a value I need that should be equivalent. The most typical case is getting some array dimension. function f(data, x, y, z) nx = …

---

## [New syntax for multi-line macrocalls](https://discourse.julialang.org/t/new-syntax-for-multi-line-macrocalls/21571)

<div class="topic-metadata">

**Author:** [@Evey](https://discourse.julialang.org/u/Evey)\
**Replies:** 3\
**Last updated:** [March 7, 2019, 8:33pm UTC](https://discourse.julialang.org/t/new-syntax-for-multi-line-macrocalls/21571 "2019-03-07T20:33:18Z")

</div>

Hi! :smile: This is a proposal for an additional macrocall syntax which will parse past newlines until an end is encountered. The idea is to have a syntax which allows using a macro more akin to reserved keyword blocks …

---

## [REPL's own scope](https://discourse.julialang.org/t/repls-own-scope/21365)

<div class="topic-metadata">

**Author:** [@jeffe](https://discourse.julialang.org/u/jeffe)\
**Replies:** 3\
**Last updated:** [March 3, 2019, 7:31pm UTC](https://discourse.julialang.org/t/repls-own-scope/21365 "2019-03-03T19:31:45Z")

</div>

Sorry for the new thread, trying not to litter @StefanKarpinski 's new scope solution, which this tangents from. Just two simple questions. I come to Julia with an understanding of scope in other languages, but… Th…

---

## [Suggestion: keeping responses appropriate for the (implicit) category](https://discourse.julialang.org/t/suggestion-keeping-responses-appropriate-for-the-implicit-category/21345)

<div class="topic-metadata">

**Author:** [@Tamas\_Papp](https://discourse.julialang.org/u/Tamas_Papp)\
**Replies:** 4\
**Last updated:** [March 3, 2019, 7:21am UTC](https://discourse.julialang.org/t/suggestion-keeping-responses-appropriate-for-the-implicit-category/21345 "2019-03-03T07:21:26Z")

</div>

We all like to demo how awesome Julia is, which occasionally results in interesting, but possibly non-idiomatic, non-extensible, or fragile code (relying on internals, etc) that stretches the boundaries of the language. …

---

## [Proposed release process and schedule](https://discourse.julialang.org/t/proposed-release-process-and-schedule/15623)

<div class="topic-metadata">

**Author:** [@StefanKarpinski](https://discourse.julialang.org/u/StefanKarpinski)\
**Replies:** 39\
**Last updated:** [January 25, 2019, 7:27am UTC](https://discourse.julialang.org/t/proposed-release-process-and-schedule/15623 "2019-01-25T07:27:06Z")

</div>

Now that we’ve released Julia 1.0 and are close to 1.0.1 and have added some new features and minor changes to the 1.1 development branch (i.e. master), it seems like time to talk about the future of the Julia release pr…

---

## [Use multi-line arguments to macros without commas with a (new) block structure](https://discourse.julialang.org/t/use-multi-line-arguments-to-macros-without-commas-with-a-new-block-structure/20577)

<div class="topic-metadata">

**Author:** [@stakaz](https://discourse.julialang.org/u/stakaz)\
**Replies:** 12\
**Last updated:** [February 9, 2019, 7:28am UTC](https://discourse.julialang.org/t/use-multi-line-arguments-to-macros-without-commas-with-a-new-block-structure/20577 "2019-02-09T07:28:51Z")

</div>

Hello, I just thought about the option to use multi-line statements for macro calls without the need to use comma in them. So I am interested in being able to rewrite this @mymacro a b "123" (1,2,3) into this @mymacr…

---

## [RFC: result type calculations for arithmetic](https://discourse.julialang.org/t/rfc-result-type-calculations-for-arithmetic/20330)

<div class="topic-metadata">

**Author:** [@Tamas\_Papp](https://discourse.julialang.org/u/Tamas_Papp)\
**Replies:** 5\
**Last updated:** [February 4, 2019, 2:39pm UTC](https://discourse.julialang.org/t/rfc-result-type-calculations-for-arithmetic/20330 "2019-02-04T14:39:25Z")

</div>

A lot of Julia code, including Base, standard libraries, and packages, includes some helper function to calculate the resulting container type from various inputs, when combined with +, -, \* and /. Examples are too many…

---

## [Request: "type functions" for parametric dispatch](https://discourse.julialang.org/t/request-type-functions-for-parametric-dispatch/20357)

<div class="topic-metadata">

**Author:** [@chakravala](https://discourse.julialang.org/u/chakravala)\
**Replies:** 5\
**Last updated:** [February 1, 2019, 6:37pm UTC](https://discourse.julialang.org/t/request-type-functions-for-parametric-dispatch/20357 "2019-02-01T18:37:03Z")

</div>

Wouldn’t it be great to have “type functions” in the dispatch of our methdos? Suppose we have a boolean function which determines a property of a type struct data{C} end property(::Type{data{C}}) where C = C \> 0 This …

---

## [Default parametric constructors of composite types](https://discourse.julialang.org/t/default-parametric-constructors-of-composite-types/20329)

<div class="topic-metadata">

**Author:** [@bkamins](https://discourse.julialang.org/u/bkamins)\
**Replies:** 8\
**Last updated:** [February 1, 2019, 8:38am UTC](https://discourse.julialang.org/t/default-parametric-constructors-of-composite-types/20329 "2019-02-01T08:38:04Z")

</div>

Observe the following code under Julia 1.1 julia\> struct A{T} a::T b::Vector{Int} end julia\> A(1, \[1\]) A{Int64}(1, \[1\]) julia\> A(1, \[1,2\]) A{Int64}(1, \[1, 2\]) julia\> A(1, 1:2) ERROR: MethodError:…

---

## [Issue: no way to include only once.](https://discourse.julialang.org/t/issue-no-way-to-include-only-once/19289)

<div class="topic-metadata">

**Author:** [@houd1ni](https://discourse.julialang.org/u/houd1ni)\
**Replies:** 1\
**Last updated:** [January 5, 2019, 2:24am UTC](https://discourse.julialang.org/t/issue-no-way-to-include-only-once/19289 "2019-01-05T02:24:22Z")

</div>

https://github.com/JuliaLang/julia/issues/30597 Hi all! After the last reply I still cannot just import without include. And include several times (per each Storage.) going into the same. Also, is there a way to have…

---

## [UniformScaling to identity matrix](https://discourse.julialang.org/t/uniformscaling-to-identity-matrix/19112)

<div class="topic-metadata">

**Author:** [@tomerarnon](https://discourse.julialang.org/u/tomerarnon)\
**Replies:** 2\
**Last updated:** [January 1, 2019, 10:13pm UTC](https://discourse.julialang.org/t/uniformscaling-to-identity-matrix/19112 "2019-01-01T22:13:28Z")

</div>

Sometimes, it is necessary to convert a UniformScaling to an actual matrix of values. In these cases, I call some form of Matrix(I, n, n). While this is not that bad, it can make otherwise very readable code slightly le…

---

## [Performant conversion of Symmetric(SparseMatrixCSC) to SparseMatrixCSC](https://discourse.julialang.org/t/performant-conversion-of-symmetric-sparsematrixcsc-to-sparsematrixcsc/18865)

<div class="topic-metadata">

**Author:** [@klacru](https://discourse.julialang.org/u/klacru)\
**Replies:** 2\
**Last updated:** [December 27, 2018, 6:51pm UTC](https://discourse.julialang.org/t/performant-conversion-of-symmetric-sparsematrixcsc-to-sparsematrixcsc/18865 "2018-12-27T18:51:00Z")

</div>

I would like to bring the following improvements to stdlib/SparseArrays. julia\> n = 10000 julia\> Random.seed!(0); A = sprandn(n, n, 0.01); b = randn(n); nnz(A) 1000598 julia\> SA = Symmetric(A); julia\> @btime B = Spars…

---

## [Simple is better than complex](https://discourse.julialang.org/t/simple-is-better-than-complex/18821)

<div class="topic-metadata">

**Author:** [@zhangliye](https://discourse.julialang.org/u/zhangliye)\
**Replies:** 10\
**Last updated:** [December 20, 2018, 12:56am UTC](https://discourse.julialang.org/t/simple-is-better-than-complex/18821 "2018-12-20T00:56:10Z")

</div>

For the following two version of Julia code, the first version is much simple and beautiful. However, it no longer works in Julia 1. Version 1: a = 0 # as simple as Python code for i in 1:10 a +=1 end @…

---

## [How to translate this phyton code to julia with efficienty(short code,easy to read write)? What about a append!() symbol in julia to "concatenate" vector?](https://discourse.julialang.org/t/how-to-translate-this-phyton-code-to-julia-with-efficienty-short-code-easy-to-read-write-what-about-a-append-symbol-in-julia-to-concatenate-vector/18036)

<div class="topic-metadata">

**Author:** [@rapasite](https://discourse.julialang.org/u/rapasite)\
**Replies:** 10\
**Last updated:** [November 27, 2018, 1:56pm UTC](https://discourse.julialang.org/t/how-to-translate-this-phyton-code-to-julia-with-efficienty-short-code-easy-to-read-write-what-about-a-append-symbol-in-julia-to-concatenate-vector/18036 "2018-11-27T13:56:01Z")

</div>

Hi I was thinking this kind of code is short and easy to write is there any ways to do this in Julia? thanks #Python code of Trinomial triangle row = \[1\] for i in range(8): print(row) row = \[sum(t) for t in zip(…

[Previous page](https://discourse.julialang.org/tag/proposal/5.md?match_all_tags=true&page=3&tags%5B%5D=proposal)

[Next page](https://discourse.julialang.org/tag/proposal/5.md?match_all_tags=true&page=5&tags%5B%5D=proposal)
