[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#12895: 24.3.50; Replacement for flet
From: |
Michael Heerdegen |
Subject: |
bug#12895: 24.3.50; Replacement for flet |
Date: |
Sun, 31 Jan 2016 18:42:19 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) |
Antoine Levitt <antoine.levitt@gmail.com> writes:
> I did like flet, though, and in general, I think it's annoying to users
> to remove/deprecate functionality that are neat ways to get inside lisp
> code from outside (dynamic-scoping overrides, advices, etc.) just
> because they are bad practice and make debugging harder.
BTW, let me add to the (valid) warnings that this can still be achieved
with cl-letf:
(cl-letf (((symbol-function 'some-function) #'some-other-function))
code...)
The created binding to the symbol-function place is dynamical.
Michael.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- bug#12895: 24.3.50; Replacement for flet,
Michael Heerdegen <=