Ryan Gahl wrote:
> -1 for identify (we're not talking about the act of identifying
> something, but generating a unique id)
-1 for same reason
> -1 for making it an instance method on elements (see my last post for
> reason)
-1 for same reason

> +1 for getId

I actually like "create" better than "get" because "get" implies that it already
exists. And I like "Uid" better than "Id" because it's not just an id, it's a
unique id.

> +1 for static method only (Element#getId)

+1

> Actually, this should really be so general as to not even be specific to
> Element(s)... just a good old general purpose method will do.
> 
> +1 for pulling out to a general level

+1

Just some random thoughts: maybe putting it in String since it returns a string?
String.createUid()? Or maybe hanging it off of Prototype itself (seems like that
would set a bad precedent for hanging tons of useful methods off of the
Prototype namespace). In Perl land we have Data::UUID for stuff like this, so
maybe we should introduce a Data namespace?

-- 
Michael Peters
Developer
Plus Three, LP


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Prototype: Core" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/prototype-core?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to