@matthewmcgarvey14 has joined the channel
Can you give an example?
I’ve found that many Racket libraries more like #lang racket/base
(require racket/list)
(require ...)
than #lang racket
Why? Is there any benefit of using racket/base
?
Better start up time
Try time racket a.rkt
(your first program) vs time racket b.rkt
(your second program)
Thanks!
I just tried: $ time racket racket.rkt
real 0m0.523s
user 0m0.000s
sys 0m0.000s
$ time racket racket-base.rkt
real 0m0.212s
user 0m0.015s
sys 0m0.000s
You are right :+1:
In addition to better start up time, I find it useful to get a clearer idea of dependencies, so having explicit require
statements is informative.
Ooh! I think I found a description of what I’m trying to ask about for Racket. Well, it’s the description, it doesn’t really help with the question of if/how Racket could do it.