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,
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
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 (
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
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