Skip to content

Add support for slices #555

Closed
Closed
@espindola

Description

@espindola

LLVM uses a lot of StringRef and ArrayRef. They are really handy and efficient, being implemented with just a pointer and size.

Some uses of it are safe (call a function with StringRef to a string that outlives the call), some unsafe (StringMap return a StringRef).

Go makes this kind of things builtin to the language (http://golang.org/doc/effective_go.html#slices), maybe we could do the same.

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-enhancementCategory: An issue proposing an enhancement or a PR with one.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions