<div class="highlight highlight-source-julia notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="julia&gt; repmat(rand(2,2), Int32(1))
ERROR: MethodError: no method matching repmat(::Array{Float64,2}, ::Int32)
Closest candidates are:
  repmat(::Union{AbstractArray{T,1},AbstractArray{T,2}}, ::Int64) at abstractarraymath.jl:271
  repmat(::Union{AbstractArray{T,1},AbstractArray{T,2}}, ::Int64, ::Int64) at abstractarraymath.jl:271
 in eval_user_input(::Any, ::Base.REPL.REPLBackend) at ./REPL.jl:64
 in macro expansion at ./REPL.jl:95 [inlined]
 in (::Base.REPL.##3#4{Base.REPL.REPLBackend})() at ./event.jl:68"><pre class="notranslate">julia<span class="pl-k">&gt;</span> <span class="pl-c1">repmat</span>(<span class="pl-c1">rand</span>(<span class="pl-c1">2</span>,<span class="pl-c1">2</span>), <span class="pl-c1">Int32</span>(<span class="pl-c1">1</span>))
ERROR<span class="pl-k">:</span> MethodError<span class="pl-k">:</span> no method matching <span class="pl-c1">repmat</span>(<span class="pl-k">::</span><span class="pl-c1">Array{Float64,2}</span>, <span class="pl-k">::</span><span class="pl-c1">Int32</span>)
Closest candidates are<span class="pl-k">:</span>
  <span class="pl-c1">repmat</span>(<span class="pl-k">::</span><span class="pl-c1">Union{AbstractArray{T,1},AbstractArray{T,2}}</span>, <span class="pl-k">::</span><span class="pl-c1">Int64</span>) at abstractarraymath<span class="pl-k">.</span>jl<span class="pl-k">:</span><span class="pl-c1">271</span>
  <span class="pl-c1">repmat</span>(<span class="pl-k">::</span><span class="pl-c1">Union{AbstractArray{T,1},AbstractArray{T,2}}</span>, <span class="pl-k">::</span><span class="pl-c1">Int64</span>, <span class="pl-k">::</span><span class="pl-c1">Int64</span>) at abstractarraymath<span class="pl-k">.</span>jl<span class="pl-k">:</span><span class="pl-c1">271</span>
 <span class="pl-k">in</span> <span class="pl-c1">eval_user_input</span>(<span class="pl-k">::</span><span class="pl-c1">Any</span>, <span class="pl-k">::</span><span class="pl-c1">Base.REPL.REPLBackend</span>) at <span class="pl-k">./</span>REPL<span class="pl-k">.</span>jl<span class="pl-k">:</span><span class="pl-c1">64</span>
 <span class="pl-k">in</span> <span class="pl-k">macro</span> expansion at <span class="pl-k">./</span>REPL<span class="pl-k">.</span>jl<span class="pl-k">:</span><span class="pl-c1">95</span> [inlined]
 <span class="pl-k">in</span> (<span class="pl-k">::</span><span class="pl-c1">Base.REPL.</span><span class="pl-c"><span class="pl-c">#</span>#3#4{Base.REPL.REPLBackend})() at ./event.jl:68</span></pre></div>
<p dir="auto">Could the signature be relaxed to accept generic <code class="notranslate">Integer</code>s? (I guess yes :)</p>
<p dir="auto">Currently, <code class="notranslate">reshape</code> requires the dimension parameters to be <code class="notranslate">Int</code></p>
<div class="highlight highlight-source-julia notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="reshape(parent::AbstractArray, dims::Int...) = reshape(parent, dims)"><pre class="notranslate"><span class="pl-en">reshape</span>(parent<span class="pl-k">::</span><span class="pl-c1">AbstractArray</span>, dims<span class="pl-k">::</span><span class="pl-c1">Int...</span>) <span class="pl-k">=</span> <span class="pl-c1">reshape</span>(parent, dims)</pre></div>
<p dir="auto">I am not sure if this is required for efficiency reasons, but I wonder if this could be changed to <code class="notranslate">Integer</code>?</p>
<p dir="auto">In reading binary formatted data I often come across the situation where dimensions of an array are specified as <code class="notranslate">Int32</code>, and then the matrix data that follows has to be reshaped accordingly.  Currently I have to escape the dimension specification using <code class="notranslate">Int()</code>, a small effort, but it would be slightly cleaner if that would not be required.</p>