[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#19790: [PATCH] destructive splicing in backquote
From: |
Artur Malabarba |
Subject: |
bug#19790: [PATCH] destructive splicing in backquote |
Date: |
Sun, 8 Feb 2015 17:38:56 -0200 |
Yes, I was surprised mostly for being caught of guard. :-)
After all this years I had never heard of ",." doing anything.
I agree that the current behavior is a bug, but either way we go is
fine for me (I managed to get around this limitation by simply adding
a space between the comma and the dot).
I'm fine with using this syntax for destructive splicing or with
disabling it altogether. But I think aliasing it to ",@" might be a
little deceptive for people who actually expect destructive splicing.
2015-02-08 17:23 GMT-02:00 Stefan Monnier <monnier@iro.umontreal.ca>:
>> Also, I could submit a patch to remove the special handling for ",." or
>> make it a syntax error, if either of those options would be preferable.
>> But the current behavior seems to be a bug.
>
> Hmm... indeed recently Artur bumped into this (he uses identifiers
> starting with "." and was surprised that ,<ident> didn't work in that
> case).
>
> Maybe removing this special syntax is the best option. Tho at least the
> current situation leaves both choices still open ;-)
>
>
> Stefan