Re: \ \ \= are valid in symbols?
The docs say what characters are guaranteed future-safe for *you* to use in symbols, nothing more. I don't see what's so puzzling about this. On Apr 4, 8:33 pm, Douglas Philips d...@mac.com wrote: (This is a follow up to my query last week, where upon I didn't fully connect these dots) According to: http://clojure.org/reader \ and \ are not in the valid list of sanctioned symbol characters. According to: http://richhickey.github.com/clojure/clojure.core-api.html The following are symbols using those characters: - - = = == = not= : (used in condp) As per the discussion last week, all the characters not listed in the reader page were free-game for potential reader-macro use. Is it really still an open question that these comparison functions would be changed in order to make those characters into macro characters? If not, can the reader page be updated? Puzzled more than ever, -Doug -- You received this message because you are subscribed to the Google Groups Clojure group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en To unsubscribe, reply using remove me as the subject.
Re: \ \ \= are valid in symbols?
On 2010 Apr 5, at 3:49 AM, ataggart wrote: The docs say what characters are guaranteed future-safe for *you* to use in symbols, nothing more. I don't see what's so puzzling about this. I asked a specific question: Is it really still an open question that the comparison functions would be changed in order to make those characters into macro characters? What is now doubly puzzling is that instead of saying: Oh yeah, we should fix the reader page to acknowledge that we've used these characters in symbols already or: Check the archives, there is some talk of or: There is a difference between symbols that closure core and those in user code, see URL or: ... there is pushback. -Doug -- You received this message because you are subscribed to the Google Groups Clojure group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en To unsubscribe, reply using remove me as the subject.
Re: \ \ \= are valid in symbols?
Oh yeah, we should fix the reader page to acknowledge that we've used these characters in symbols already The reader already has a macro associated with \, the character literal. user= (int \) 62 user= (str \) user= (first ) \ HTH, Sean On Apr 5, 11:19 am, Douglas Philips d...@mac.com wrote: On 2010 Apr 5, at 3:49 AM, ataggart wrote: The docs say what characters are guaranteed future-safe for *you* to use in symbols, nothing more. I don't see what's so puzzling about this. I asked a specific question: Is it really still an open question that the comparison functions would be changed in order to make those characters into macro characters? What is now doubly puzzling is that instead of saying: Oh yeah, we should fix the reader page to acknowledge that we've used these characters in symbols already or: Check the archives, there is some talk of or: There is a difference between symbols that closure core and those in user code, see URL or: ... there is pushback. -Doug -- You received this message because you are subscribed to the Google Groups Clojure group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en To unsubscribe, reply using remove me as the subject.
Re: \ \ \= are valid in symbols?
On 5 April 2010 17:25, Sean Devlin francoisdev...@gmail.com wrote: Oh yeah, we should fix the reader page to acknowledge that we've used these characters in symbols already The reader already has a macro associated with \, the character literal. user= (int \) 62 user= (str \) user= (first ) \ I think his question should be read as if he had not included any backslashes anywhere. i.e. he's asking about , , and =. Not \ or \ etc. -- Michael Wood esiot...@gmail.com -- You received this message because you are subscribed to the Google Groups Clojure group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en To unsubscribe, reply using remove me as the subject.
Re: \ \ \= are valid in symbols?
On 2010 Apr 5, at 4:15 PM, Michael Wood wrote: I think his question should be read as if he had not included any backslashes anywhere. i.e. he's asking about , , and =. Not \ or \ etc. Well, I was/am trying to be precise. Symbols are looked up by strings and strings contain characters, unlike some languages (Python, say), where characters are just single letter strings... user= (seq =) (\ \=) Sorry for the confusion! -Doug -- You received this message because you are subscribed to the Google Groups Clojure group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en To unsubscribe, reply using remove me as the subject.