Skip to content

uuid!() and iota!() (and maybe random!()) syntax extensions #7104

Closed
@graydon

Description

@graydon

uuid!() should generate a UUID (http://en.wikipedia.org/wiki/Universally_unique_identifier). It should take arguments (or there should be multiple variants of the call) to indicate the UUID-variant. The default should just be random. Could possibly defer to a random!() syntax extension that generates a random value at compile time.

iota!() should do something like what the iota expression in Go does: http://golang.org/ref/spec#Iota -- evaluate to a constant integer starting from zero and increment the counter, resetting on some reaosnable boundary such as "per module" or "per scope".

(Nominating for feature complete.)

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-syntaxextArea: Syntax extensionsC-enhancementCategory: An issue proposing an enhancement or a PR with one.E-easyCall for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions