Re: Keywords with colon on the backside?

2016-10-13 Thread larry google groups
Am I correct in saying that this conversation is at least partly related to the question of "Will Clojure ever support reader macros?" And for now the answer is "no". Because with reader macros, programmers could change the meaning of ":". On Friday, September 23, 2016 at 7:13:30 PM UTC-4,

Re: Keywords with colon on the backside?

2016-09-23 Thread John Mastro
Timothy Baldridge wrote: > The syntax (I think) comes from Ruby although they call keywords "symbols". The reader syntax for Common Lisp's keywords has the leading colon too. John -- You received this message because you are subscribed to the Google Groups

Re: Keywords with colon on the backside?

2016-09-23 Thread Gregg Reynolds
On Sep 23, 2016 4:40 PM, wrote: > > > > On Friday, September 23, 2016 at 4:22:04 PM UTC-4, tbc++ wrote: >> >> >> So that would be my rationale for it..it's easy to see by the first character of a term what data structure the term will become (

Re: Keywords with colon on the backside?

2016-09-23 Thread tabcomputing
On Friday, September 23, 2016 at 4:22:04 PM UTC-4, tbc++ wrote: > > > So that would be my rationale for it..it's easy to see by the first > character of a term what data structure the term will become ( > https://en.wikibooks.org/wiki/Learning_Clojure/Reader_Macros). And that's > just one of

Re: Keywords with colon on the backside?

2016-09-23 Thread Timothy Baldridge
Almost all of Clojure's reader macros are prefix driven. For example, 'foo quotes the symbol "foo", a string "foo" starts with a prefix quote and terminates with another string. Same for lists (prefixed with a parentheses), vectors, maps, etc. Even var literals #'my-var are prefixed. So it's very