On Tue, May 17, 2016 at 9:01 AM, Manor Askenazi
<[email protected]> wrote:
>
> On Tuesday, May 17, 2016 at 8:49:22 AM UTC-4, Yichao Yu wrote:
>>
>> On Tue, May 17, 2016 at 8:41 AM, Manor Askenazi
>> <[email protected]> wrote:
>> > [1.0:0.5:2.0, 3.0:0.1:4.0, 5.0:0.2:6.0]
>> >
>> > Just turns into a 20-element Array{Float64,1} !!!
>>
>> This is deprecated on 0.4 and returns an Vector{FloatRange{Float64}} on
>> 0.5
>
>
> Just to be clear, you are saying that in Julia 0.4, this is deprecated:
>
> [1.0:0.5:2.0, 3.0:0.1:4.0, 5.0:0.2:6.0]
Correct, and it should give you an depwarn.
>
> But that in Julia 0.5 (?) it yields:
>
> Vector{FloatRange{Float64}}
Correct. (currently pre-released version of 0.5 to be more accurate)
>
> Which is what I wanted to begin with...
I agree. The syntax `[a, b]` (v(ertical)cat) comes from matlab and is
now replaced with `[a; b]`. 0.4 is the deprecation period for it since
we usually don't want to suddenly change the meaning of a valid syntax
when possible.
>
> Did I understand you correctly?
Yes