On Aug 12, 2009, at 3:19 PM, Mark Volkmann wrote:

> I didn't release it was valid to define names with colons in them.
> Maybe that shouldn't be allowed. I'd like to be able to specify type
> hints using UML-like syntax like the second example from Chas which
> was
>
> (defh foo [s:String unhinted-arg {a:int :a}] ...)

I *really* like the look of s:String (or String:s, which I used in my  
quickie impl, they're interchangable), but I can easily see colons  
being used for some other syntactic purpose down the road that we're  
not yet aware of (ranges come to mind, eg. [0:50] as in python).  And  
of course, colons and other special characters are very helpful in  
representing domain-specific semantics directly in code, so losing  
those special characters is an expensive choice that should be weighed  
very cautiously.

- Chas

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to [email protected]
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to