I think it makes perfect sense. If you need a range object where you know the start and ending points, you use colon (i.e. `start:step:stop`). If you know how many elements you want and what step, but you don't know (or care so much) about the stopping point, you use `range`. Just because *you* don't have need for it, doesn't mean no-one else does :)
// T On Monday, December 7, 2015 at 9:53:38 AM UTC+1, Jürgen Bohnert wrote: > > I honestly cannot imagine a good application justifying this 'range' > function being in the main namespace. What it does is quite > counter-intuitive. Or maybe renaming it would be an option? > Anyway thanks for all your answers guys. > > Best, > Juergen > > > Am Montag, 7. Dezember 2015 04:11:07 UTC+1 schrieb whycrying: >> >> Ah. The second argument is the length of the range. >> >> And the three arguments's: >> >> julia> which(range,(Int,Int,Int)) >>> range{T,S}(a::T, step::S, len::Integer) at range.jl:101 >>> >> >> Not so consistent. >> >> Well, this is different from Python. >> Look range in Python(via iPython): >> >> In [3]: range? >>> Docstring: >>> range(stop) -> range object >>> range(start, stop[, step]) -> range object >>> >>> Return a sequence of numbers from start to stop by step. >>> Type: type >>> >> >> >> >> -- >> https://www.zhangkaizhao.com/ >> >