What are some guidelines about use of paths?<br>Am I correct in thinking the following is a path:<br>#<path:/home/don/.plt-scheme/4.2.1/collects/DG/append2.ss><br><br>Should I specify paths, such as above, rather than strings such as:<br>
"/home/don/.plt-scheme/4.2.1/collects/DG/append2.ss"<br><br>(I notice that many Racket path functions convert my strings to paths. I want to minimize or better yet, eliminate, converstions between strings and paths. Is this a good idea?)<br>
<br>Maybe I need to understand why Racket is using the path form instead of the string form. (Can you explain briefly why the string data type was not sufficient so the path data type was developed.<br><br>Can you provide any comments about my following thoughts about relative vs. absolute paths.<br>
For simplicity sake, I think I should initially work wtih absolute (complete) paths only. Then as I encounter the need to share files, or compile files, then at that point I need to make use of relative paths & building of paths. Handling paths from within one module is not difficult, however, I seem to encounter problems when I create other modules that 'require'/refer to other modules that specify or build paths.<br>
<br>If I need to use relative paths right away, then I understand that I use the build-path function to concatonate a path prefix with a path suffix (the suffix being a relative path). <br>Thanks.<br>