Hi,

A newbie question about idiomatic Racket code: 

Suppose I wanted to create several numeric modules that all had their own 
interpretation of what addition means.  If each of them uses a (provide ... 
+ ...) form, the various "+" exports are going to collide in client modules 
that (require ...) more than one of them.

Is it idiomatic Racket usage to prefix the individual "+" functions inside 
each module like the built-in floating point  modules do (e.g. "fl+") or to 
assume client modules will use something like (require (rename-in ...)...) 
or (require (prefix-in ...) ...) to handle any collisions themselves?

If anyone can point me to example Racket code where this issue has been 
idiomatically handled that would be very useful.

This is also a good opportunity to say how impressive the level of 
documentation and support is in the Racket community. Thanks!

Stu


-- 
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.
For more options, visit https://groups.google.com/d/optout.

Reply via email to