unofficial mirror of guile-devel@gnu.org 
 help / color / mirror / Atom feed
* Proposal for a new (ice-9 history)
@ 2018-10-29 14:13 Mikael Djurfeldt
  2018-10-29 23:54 ` Mark H Weaver
  2018-10-30  0:25 ` Proposal for a new (ice-9 history) Mark H Weaver
  0 siblings, 2 replies; 13+ messages in thread
From: Mikael Djurfeldt @ 2018-10-29 14:13 UTC (permalink / raw)
  To: guile-devel

[-- Attachment #1: Type: text/plain, Size: 961 bytes --]

I'd like to rewrite (ice-9 history) to conform to the full GDB value
history syntax. This is because I find that I miss being able to refer to
"the last value" etc.

Currently we have:

$<N> the N:th value from the start

The extension would add bindings for:

$$<N> the N:th value from the end

$ the last value (= $$0)

$$ the value just prior to the last value (= $$1)

Implementation:

Currently, every step in the REPL defines a $<N> in the module
(value-history) the interface of which is appended to the list of used
interfaces for the (current-module).

The new implementation would just add a new result value to a list, not
doing any definition.

The interface of (value-history) would instead have a lazy-binder which
provides a syntax transformer for every $... actually being used. The $...
identifier would expand into a list-ref into the value history.

Please evaluate this suggestion and give comments or an OK.

Best regards,
Mikael Djurfeldt

[-- Attachment #2: Type: text/html, Size: 1343 bytes --]

^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2018-11-02 14:02 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-10-29 14:13 Proposal for a new (ice-9 history) Mikael Djurfeldt
2018-10-29 23:54 ` Mark H Weaver
2018-10-30  0:55   ` Mikael Djurfeldt
2018-10-30 10:21     ` REPL and load deifferences (was Re: Proposal for a new (ice-9 history)) Mikael Djurfeldt
2018-10-30 12:20       ` Mikael Djurfeldt
2018-10-30 18:01         ` Göran Weinholt
2018-10-30  0:25 ` Proposal for a new (ice-9 history) Mark H Weaver
2018-10-30  1:08   ` Mikael Djurfeldt
2018-10-30  6:20     ` Mark H Weaver
2018-10-30 13:59       ` Mikael Djurfeldt
2018-10-31 16:49         ` Mikael Djurfeldt
2018-11-02 13:35           ` Mikael Djurfeldt
2018-11-02 14:02             ` Mikael Djurfeldt

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).