As for syntax either of these seems to work:
Code: Select all
generate UUID
put it into tUUID
Code: Select all
put generateUUID() into tUUID
I think I like `create` as the verb better than `generate` too... It's more xTalkish...
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, LCMark
Code: Select all
generate UUID
put it into tUUID
Code: Select all
put generateUUID() into tUUID
I'd love the "new" syntax to be extendable, not just for uuids, but paving the way for collections and classes.I always thought 'a new uuid' was good syntax for uuid generation (but that might be a bit tricky to integrate with the current parser).
Hi Mark,runrevmark wrote:In terms of what the current function generates - I'm not sure of the type... But that does raise another question, do we need to provide the ability to generate different types? And also, what implementations can provide the options we might want?
Code: Select all
create UUID [with namespace theNamespace]
Code: Select all
put a new UUID [with namespace theNamespace] into theUUID
Code: Select all
put uuid(5) into theUUID
Code: Select all
new button
create button
Agreed. I'd rather see uuid be a function myself.Regarding new