
what are the technical difficulties of implementing generic methods in typed rackets?

@boeyen has joined the channel

There are two issues. First, what the type checking rules should be. Second, how to analyze the macros that implement generic method definitions and do the type checking.

Some progress has been made in working on supporting struct properties, see the recent RFC.

When you’re making changes to the reference in development, what’s the best way to preview those changes (rendered, I mean)?

I use raco setup -l scribblings/reference

does this entail first installing the racket-doc
package using raco link
?

just by itself, it tells me that the collection isn’t found

Yes, that’s assuming that you have racket-doc
installed and are editing in the installed copy. (Don’t use raco link
. Use the raco pkg
family of commands.) What kind of Racket installation do you have?

I’m using an in-place build on a cloned repo. The reference is part of the repo, so if I just do a normal package install of racket-doc
, won’t it pull it from the network?

You just typed make
? Or make PKGS=<something>
?

just make
(from racket/src/build
) but when I tried `make PKGS="racket-doc", it didn’t render any docs

If you just typed make
, then you got the default package installation of main-distribution
, which includes racket-doc
. A raco pkg show racket-doc
should show that you have the package installed as a link to “pkgs/racket-doc” within your Git clone. You should edit documentation there, and raco setup -l scribblings/reference
will rebuild from there.

This works because make
sets up a catalog that maps the subset of packages included in the the main racket repo to the directories containing those packages.

jaz@jons-mbp:~/src/97jaz/racket/racket/src/build (hash-ref-key)$ ../../bin/raco pkg show racket-doc
Installation-wide:
[none]
User-specific for installation "7.4.0.3":
[none]

Oh, I mean make
at the top level of the Git clone, not in “build”

Should I not be using build
, in general?

They cooperate, but you want all the extra things that make
at the top does.

ok, thanks!