26 ms·
In the "Racket2" wish list ( https://github.com/plt/racket/wiki/Racket2 https://github.com/plt/racket/wiki/Racket2 ) there is an idea to use more generics: > G
by gus_massa 12y ago
In the "Racket2" wish list ( https://github.com/plt/racket/wiki/Racket2 https://github.com/plt/racket/wiki/Racket2 ) there is an idea to use more generics:
> Generic programming by default: map, fold, and friends are generic [in Racket2] and not specialized to lists.
I have something similar in my private "language" that I use for internal projects, it also use that for append and length (actually len, because length is too verbose). And I use only list-append or string-append in the few cases where the speed is critical.
If something like this is implemented, the transformation from append to list-append or string-append could be made automatically in some cases by the Typed Racket optimizer (or the core optimizer).