
Ah, the answer is that they have different error-print-width

You can’t do that with plain structs. You might be interested in classes with mixins and/or traits, as well as the swindle
language.

I found one minor bug. If you keep DrRacket open on MacOS, when the system theme change from Light Mode to Dark Mode or vise-versa, the text color will be wrong.

can you report that on http://github.com/racket/drracket\|github.com/racket/drracket?

:ok_hand:

So, I reported this before

@greg racket-open-require-path or whatever it’s called doesn’t work if the file that’s open is in a directory that no longer exists

The issue seems to be that you need to restart DrRacket fully for it to work

Otherwise, it won’t, and it seems to be a “won’t fix” bug

Just add a comment on the issue. Don’t know if it would affect the “won’t fix” state. https://github.com/racket/drracket/issues/235#issuecomment-614165347

“the file that’s open” = which exactly? Do you mean you’re in a buffer visiting /path/to/foo.rkt, but move foo.rkt and rmdir /path/to, then use M-x racket-open-require-path? OR, are you talking about one of the files that the command finds?

the former

OK I’ll take a look, including seeing if this is problem with Dr Racket (if drracket find-module-path-completions can return relative pathnames, so, current-directory is presumed, this might need to be something where it errors sooner with a better message. as opposed to being fixed per se. But I’ll take a look.)

If memory serves, I had read somewhere that swindle should be avoided for some reason or another, but I’ll take a look.

Swindle is very old and I wouldn’t use it for new code, but then again I never wanted to use it in the first place ;)

Ha!

Style question: exn->string
is documented as accepting (or/c exn? any/c)
. Is there a reason why it can’t just be any/c
?

is chez scheme ready for prime time this release ?

does anyone here use pollen? so i have an index.ptree
that keeps track of all the pages in a list, and i want to pull that into another file. I’m unsure how to do so though….

Racket CS is ready for many purposes, but it still will not be the default in v7.7. Some DrRacket CS users are reporting leaks, and I think the GC probably needs to work better for large heaps (like DrRacket’s even when it doesn’t leak).

so i have a nested list (list (list 1 2 3) (list 4 5 6) )
and i want to spread them out, but flatten removes all dimensions. I want the end result to be unwrapped (list 1 2 3)
(list 4 5 6)
without manually taking the car and (car (cdr))

It could be, that would be equivalent. I think the docs are just being suggestive of how the behavior is different in those two cases.

For this particular case, there’s first
and second
.
> (first (list (list 1 2 3) (list 4 5 6)))
'(1 2 3)
> (second (list (list 1 2 3) (list 4 5 6)))
'(4 5 6)
You can also use match
to extract the values inside if there will be only two elements:
> (match-define (list a b) (list (list 1 2 3) (list 4 5 6)))
> a
'(1 2 3)
> b
'(4 5 6)
In general (for more than 2 items), there’s list-ref
:
> (list-ref (list (list 1 2 3) (list 4 5 6)) 0)
'(1 2 3)
> (list-ref (list (list 1 2 3) (list 4 5 6)) 1)
'(4 5 6)

I think you got an answer from the mailing list already re: Pollen?

I don’t know what it is about syntax objects that I’m just not getting, so please bear with me. Here’s a boiled down reader submodule that just dumps into an anonymous racket/base
submodule under a couple of requires
. When I use this module as a #lang
, my implicit forms are still missing (#%app
, etc).
#lang racket/base
(module reader racket/base
(provide (rename-out [read+ read]
[read-syntax+ read-syntax]))
(require racket/port
racket/function
(for-syntax racket/base))
(define (read+ in)
(syntax->datum (read-syntax+ #f in)))
(define (read-syntax+ src in)
(with-syntax ([(code ...)
(map namespace-syntax-introduce
(port->list (curry read-syntax src) in))])
#'(module anonymous racket/base
(require unlike-assets/resolver
racket/runtime-path)
code ...))))
So I threw in that (map namespace-syntax-introduce ...)
. That didn’t work. Then I composed it with strip-context
. Then I put in a (for-syntax racket/base)
under the anonymous submodule.
Part of me suspects that with-syntax
is coercing the plain list in a way that is working against me, but I hit my pain threshold. What am I missing?