Closed midenok closed 4 years ago
Not at the moment, but I often wish there was.
I can add a rule that if the left and right part of the =
sign are identical, only one is printed. Like, instead of
(gdb) dl 1..2
1 = 1
2 = 2
it'll be
(gdb) dl 1..2
1
2
or, perhaps,
(gdb) dl 1..2
= 1
= 2
Is that ok? Then if you just want a complex expression with nothing before the =
, you simply wrap everything in {...}
as documented.
I'd rather prefer some config variable:
import duel;
duel.verbose = false;
or something like that...
First, duel doesn't have config variables yet.
Second, wrapping the expression in {...}
allows to disable verbosity only when needed, because often one actually wants to see the expression, and only when it becomes very long or irrelevant one would disable it.
And third, config variable or not, it generally doesn't make much sense to print exactly the same value on both sides of =
. So even in the verbose mode I'd rather force X = X
to be always not verbose.
Should I keep the =
sign like in
(gdb) dl 1..2
= 1
= 2
? I think I'd better keep it, otherwise one cannot clearly see where a value starts (in case values are very long and wrap around in a terminal window)
Not speaking to others, but I don't need verbosity at all. I'm not expert here, but by perl analogy there should be ability to use module-wide variables. https://stackoverflow.com/questions/1977362/how-to-create-module-wide-variables-in-python
F.ex. I do:
and get this output:
I'd really benefit from shorter output, like this:
Is there such an option?