-
-
Notifications
You must be signed in to change notification settings - Fork 306
Closed
Description
The current range syntax changing between 1.0 and 1.1... It may only be a few months before the 1.1 release, but we are writing a lot of code between now and then.
Basically, whenever we have code right now that says linspace(a, b, N) with this patch we could turn it to range(a, b, length=N) which is objectively better.
I asked on slack and they told me that if we do some (temporary) type piracy, we can emulate the (far better) syntax with
Base.range(start, stop; length=nothing, step=nothing) = range(start; stop=stop, length=length, step=step)We would wrap that in a v"1.0" <= VERSION < v"1.1" wrapper so as not to clash with the 1.1 release.
@sglyon @Nosferican @cc7768 Thoughts?
simonbyrne and Nosferican
Metadata
Metadata
Assignees
Labels
No labels