On Oct 8, 1:17 pm, Rich Hickey <[EMAIL PROTECTED]> wrote:
> It conflicts with the default value capability of get:
>
> ({:a 1 :b 2} :c 5)
>
> -> 5
Ah, this I didn't know. I've been using (or (map key) default) when I
could have been writing (map key default).
I guess that means that calling a ha
On Oct 8, 4:45 am, James Reeves <[EMAIL PROTECTED]> wrote:
> Is there any disadvantage to making:
>
> (map-or-vector :foo "bar" 5)
>
> Equivalent to:
>
> (((map-or-vector :foo) "bar") 5)
>
> For hash maps and vectors? As far as I can see, this doesn't conflict
> with any other syntax, and it wou
Is there any disadvantage to making:
(map-or-vector :foo "bar" 5)
Equivalent to:
(((map-or-vector :foo) "bar") 5)
For hash maps and vectors? As far as I can see, this doesn't conflict
with any other syntax, and it would cut down on the brackets when
dealing with maps within maps.
- James
--~