Re: [racket-users] rel-string module path suffix not added automatically?

2019-08-21 Thread Štěpán Němec


[resending to the list; I originally posted via Gmane but the
mail-to-news direction doesn't seem to work, sorry for the
duplication/confusion]

On Wed, 21 Aug 2019 06:39:42 +0200
Matthew Flatt wrote:

> It looks to me like the Guide documentation is wrong there. A ".rkt"
> suffix is added for an identifier-form path, like `racket/base`, but
> not for a relative-path string like "../file".

Thank you for the clarification! I hope someone can correct the
documentation (I would submit a patch same as I'm going to do with some
trivial typos I stumbled upon, but here perhaps some more sophisticated
action is required).

-- 
Štěpán

-- 
You received this message because you are subscribed to the Google Groups 
"Racket Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to racket-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/racket-users/8736hukgpp.fsf%40gmail.com.


Re: [racket-users] rel-string module path suffix not added automatically?

2019-08-20 Thread Matthew Flatt
At Tue, 20 Aug 2019 22:01:11 +0200, Štěpán Němec wrote:
> I notice that (require "../file.rkt") inside a module (#lang racket,
> v7.4) works, but (require "../file") doesn't ("no such file or
> directory" error).
> 
> As per ,
> 'If the path has no suffix, ".rkt" is added automatically.'
> 
> Does the documentation differ from actual behaviour or am I missing
> something?

It looks to me like the Guide documentation is wrong there. A ".rkt"
suffix is added for an identifier-form path, like `racket/base`, but
not for a relative-path string like "../file".

-- 
You received this message because you are subscribed to the Google Groups 
"Racket Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to racket-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/racket-users/5d5ccb12.1c69fb81.79596.6738SMTPIN_ADDED_MISSING%40gmr-mx.google.com.


[racket-users] rel-string module path suffix not added automatically?

2019-08-20 Thread Štěpán Němec


  Hello,

I notice that (require "../file.rkt") inside a module (#lang racket,
v7.4) works, but (require "../file") doesn't ("no such file or
directory" error).

As per ,
'If the path has no suffix, ".rkt" is added automatically.'

Does the documentation differ from actual behaviour or am I missing
something?

  Thank you,

  Štěpán

-- 
You received this message because you are subscribed to the Google Groups 
"Racket Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to racket-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/racket-users/87zhk3k3nc.fsf%40gmail.com.