Matt Wette <matt.we...@gmail.com> writes: > On 2/26/23 10:03 AM, Dr. Arne Babenhauserheide wrote: >> Matt Wette <matt.we...@gmail.com> writes: >> >>> You can name a file containing Scheme code "foo.js" and "guile foo.js"
>> guile -L . -e '(foo)' -c '' >> >> won’t find it. But it will find it in foo.scm. >> > > Guile does not use file extensions consistently, then? Those are two different use-cases. With guile foo.js, guile does not have to search for the file: it just uses the one you passed. With -e '(foo)' it has to search for a matching module in the known / defined load paths. Note also guile -L . -e '(foo)' -c '' has lower startup time than guile foo.scm. If I understand it correctly that’s because it simply mmaps the compiled *.go file while guile foo.scm always reads the file. Best wishes, Arne -- Unpolitisch sein heißt politisch sein, ohne es zu merken. draketo.de
signature.asc
Description: PGP signature