[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#15122: 24.3.50; [PATCH] byte-compiler warnings about destructive fun
From: |
Stefan Monnier |
Subject: |
bug#15122: 24.3.50; [PATCH] byte-compiler warnings about destructive functions |
Date: |
Tue, 20 Aug 2013 10:39:54 -0400 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) |
>> > might not be aware of when they might be doing so. I mentioned Scheme's
>> > explicit choice to name all such functions in a noticeable way. Drawing
>> > attention to (all) use of destructive operations is not necessarily a
>> > useless thing, depending on the user and context.
>> Yes, I like Scheme's convention.
> Then consider adding (subtle, optional) font-lock highlighting of such.
> That would anyway be better than compiler warnings. The list of fns
> I came up with is a start. You might even consider putting a recognizable
> property on the function symbols, as well.
Font-lock might be a good idea, indeed.
We could also additionally start to introduce Scheme-style names, like
sort!, reverse!, butlast!, ...
Stefan
- bug#15122: 24.3.50; [PATCH] byte-compiler warnings about destructive functions, Drew Adams, 2013/08/18
- bug#15122: 24.3.50; [PATCH] byte-compiler warnings about destructive functions, Richard Stallman, 2013/08/18
- bug#15122: 24.3.50; [PATCH] byte-compiler warnings about destructive functions, Stefan Monnier, 2013/08/18
- bug#15122: 24.3.50; [PATCH] byte-compiler warnings about destructive functions, Drew Adams, 2013/08/19
- bug#15122: 24.3.50; [PATCH] byte-compiler warnings about destructive functions, Stefan Monnier, 2013/08/20
- bug#15122: 24.3.50; [PATCH] byte-compiler warnings about destructive functions, Drew Adams, 2013/08/20
- bug#15122: 24.3.50; [PATCH] byte-compiler warnings about destructive functions,
Stefan Monnier <=
- bug#15122: 24.3.50; [PATCH] byte-compiler warnings about destructive functions, Drew Adams, 2013/08/20
- bug#15122: 24.3.50; [PATCH] byte-compiler warnings about destructive functions, Leo Liu, 2013/08/20
- bug#15122: 24.3.50; [PATCH] byte-compiler warnings about destructive functions, Stefan Monnier, 2013/08/21
- bug#15122: 24.3.50; [PATCH] byte-compiler warnings about destructive functions, Richard Stallman, 2013/08/21