Julia: Rename Range to AbstractRange?

Created on 16 May 2017  路  5Comments  路  Source: JuliaLang/julia

Range is one of the very few Base abstract types which do not contain "Abstract" in their names. The only other case that comes to my mind is number types (Integer, Real...), which have been granted an exception. Should we rename it to AbstractRange? This would be clearer IMHO, since Range can intuitively be understood as the default range type (equivalent to Array vs. AbstractArray).

arrays

Most helpful comment

Only in zigzags... I'll make a PR then.

All 5 comments

Any opposition to this change? If not, I'll make a PR.

It was once called this and we changed it. You may want to look for the discussion around that change before going ahead with this.

I think you may be thinking of the Ranges -> Range change (#6326). It doesn't look like they were ever called AbstractRange.

Right, I was misremembering. At least we're not going in circles :)

Only in zigzags... I'll make a PR then.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

wilburtownsend picture wilburtownsend  路  3Comments

dpsanders picture dpsanders  路  3Comments

manor picture manor  路  3Comments

TotalVerb picture TotalVerb  路  3Comments

felixrehren picture felixrehren  路  3Comments