Re: Guile's time execution issues

2020-05-08 Thread Linus Björnstam
Another option would be to just overload equal? in match.scm to transform into eqv? when there are char literals or numbers, eq? on symbols, booleans, the empty list and keywords and (@@ (guile) equal?) for everything else. Considering that it in this case contributed a 25% overhead to code tha

Error on returning a pair

2020-05-08 Thread reetindersidhu
Hi Getting a guile error for (lambda (x) (x . x)) but not for (lambda (x) (x x)) This may be a dumb question, but why is this? Same behavior in versions 2.2.6 and 3.0.2. Regards Reetinder Sidhu

Re: Error on returning a pair

2020-05-08 Thread Stefan Israelsson Tampe
(x . x) is not creating a pair, use (cons x x) or `(,x . ,x) On Fri, May 8, 2020 at 4:16 PM reetindersidhu wrote: > Hi > > Getting a guile error for > > (lambda (x) (x . x)) > > but not for > > (lambda (x) (x x)) > > This may be a dumb question, but why is this? > > Same behavior in versions

Re: Functional hashtables

2020-05-08 Thread Christopher Lemmer Webber
ArneBab writes: > Christopher Lemmer Webber writes: > >> Linus Björnstam writes: >> >>> I made a module out of Andy's dash (and added some comfort functions >>> over fash-fold): >>> https://hg.sr.ht/~bjoli/guile-fash/browse/fash.scm?rev=default >> >> BTW, I am getting: >> >> cwebber@twig:~/devel$

Writing a generic function for records?

2020-05-08 Thread Stephen Paul Weber
Is it possible (Guile 3.0) to write a generic function / method for record values? I see that a record has a GOOPS class <>, and that a record-type has the GOOPS class , but it seems that <> is not a subclass of ? I am playing with the ECMAscript implementation and would like to: (d