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
e.com; > {:headers {:foo ["bar" "baz"], :eggplant "quux"}}) > > > would just read so much better as: > > (client/get "http://example.com; > {headers: {foo: ["bar" "baz"], eggplant: "quux"}})

Keywords with colon on the backside?

2016-09-23 Thread tabcomputing
: ["bar" "baz"], eggplant: "quux"}}) So I was wondering, is there any reason Clojure couldn't *also* support keywords with a backside colon notation? *I had only one issue with Cryogen, for which the error message was completely useless. But I was able to work ou