[plt-scheme] function names in a module

From: Danny Yoo (dyoo at hkn.eecs.berkeley.edu)
Date: Sat Apr 22 22:36:46 EDT 2006

On Sat, 22 Apr 2006, Jon Rafkind wrote:

> Im writing a library/module that defines some functions which clash with 
> standard mzscheme functions. In particular I have a function named 
> 'read-line' which is defined somewhere in the standard mzscheme module. 
> To get around this I defined the function as 'read-line-' and used 
> (rename) to provide it as 'read-line' and then I expect the user to use 
> (prefix) when require'ing my module to not have namespace clashes with 
> mzscheme.

Hi Jon,

Yes, using prefix lets us avoid collisions.  I usually try to steer clear 
of the names of mzscheme-defined primitives, though, just to make my own 
REQUIREs easier to type.

Best of wishes!

Posted on the users mailing list.