2009-10-02

REBOL Module Names

One of the best new features of the upcoming REBOL 3 is the module system. I’m not going to go into the rationale behind modules, but I would like to make a proposal about module names.

Every module can optionally have a name. A name is required if the module author wishes to export words from the module. If the module is contained in a file, it’s important to note that the module name and the file name need not be the same. REBOL uses the module name to ensure that a module is never loaded twice. This allows us to import the module as often as we like without incurring any additional overhead.

The name of a module must be a valid REBOL word. Many REBOL programmers are used to REBOL’s "programming in the small" (PITS) philosophy, so I think their tendency will be to use simple module names. However, modules are not a PITS feature, they are a "programming in the large" (PITL) feature. Using simple module names will decrease the opportunity for reuse by making collisions more likely.

So my proposal is to take a page from Java and use package-style module names. Fortunately, the "." character is perfectly valid inside a REBOL word and has no particular meaning as it does in other languages. Here are some examples:

com.rebol.math
net.revolucent.math

As you can see, these are names for math modules. My fear is that many REBOL programmers will release modules naively named "math" and this will make it much harder to use them together. By hijacking Java's simple convention of reverse domain names, the problem is neatly solved.

28 comments:

  1. This is a great web site. Good sparkling user interface and very informative blogs. I will be coming back in a bit, thanks for the great article. I have found it enormously useful.

    ReplyDelete
  2. Map: Will help you tag locations of interest on an interactive map. downlodable pdf With this method great songs are created in no time, songs that can keep up with the ones of your idols.

    ReplyDelete
  3. A dedicated developer who will add more features and keep improving the application. Get it! And watch out, sometimes the coach will lob a grenade at you to make sure you are paying attention.

    ReplyDelete
  4. #1Backup breaks down the 2 Gb file size limitation even with FAT disk partitions. download software Background and residents' posture are chosen and an image can be saved to the photograph of iPhone.

    ReplyDelete
  5. Added ability to add/remove people from training games. downlodable manuals Use of this app is subject to the Nickelodeon End User License Agreement.

    ReplyDelete
  6. While there may be some compensation upon being let go from the firm you work for, this money wont last forever. downlodable keygens The DevExpress DataExplorer provides a unique way of building native iOS data-driven applications without having to write a single line of code.

    ReplyDelete
  7. From The Strange Agency: The ultimate DJ experience! My page. CardSpace -- framework for managing the identities of your users.

    ReplyDelete
  8. Here are just a few of the topics your child will master with the help of Numbie. download ebooks MORE WORDTRAINER APPSThere are word trainer apps for beginners, advanced, business and children available.

    ReplyDelete
  9. From the main page, tap on the Menu button and select About. http://downloadallthingsfast.me Failure to reach the minimum score will cost you a life.

    ReplyDelete
  10. Main features:Dynamic two-way lookup: Easily switch between English => Portuguese and Portuguese => English modes with just one click. download software You intuitively know how to use it from the moment you first launch it.

    ReplyDelete
  11. IMPORTANT: This is a big game, and requires an iPhone 3GS or newer or a 3rd gen iPod Touch or newer. todaydownloadornot.top Whether you are a geography-geek or a rookie - GeoFlight Canada will be fun, entertaining and undeniably mind-bending.

    ReplyDelete
  12. Excellent work, keep it free and you'll have a killer little app. http://downloadgtasanandreas.gdn By her tenth birthday the resemblance to Morella is frightening.

    ReplyDelete
  13. Essie, having sent her son to boarding school, weighs his unhappiness against the opportunities his education will provide. downloadfilesfromalexandra.download Count the types of prizes your 4D numbers have strike before.

    ReplyDelete
  14. From Ion Brumaru: Drivio offers an advanced test system to your iPhone, iPad or iPod touch offering 400 practice questions. downloadtorrentfromzoey.online Jenny was nice enough to send me a reply and two days later I recived an email with an attachment that I was able to open.

    ReplyDelete
  15. Capture and save your golf swings to compare and perfect over time. topdownloadfromaddison.info Each date includes a description of the event, week number and days until next occurrence.

    ReplyDelete
  16. I'm just glad everything went smoothly and there's no unpleasant occurrence. pressure washing

    ReplyDelete
  17. This information is very useful. thank you for sharing. and I will also share information about health through the website. carpet cleaning

    ReplyDelete
  18. This allows us to import the module as often as we like without incurring any additional overhead just like here kitchen cabinet refacing seattle

    ReplyDelete
  19. Casino Gambling and Casino - Royal Jordan 4 Retro
    Play casino gambling games online and join Royal Jordan 4 Retro for where to buy air jordan 18 retro yellow a chance to win air jordan 18 retro men blue to you thousands how to find air jordan 18 retro yellow of air jordan 18 retro varsity red to good site free spins! This replica jordan 18 white royal blue exclusive casino offers a wide range of games

    ReplyDelete
  20. click here to investigate q2y71g8v74 louis vuitton replica handbags 7a replica bags replica bags bangkok this link h3j21r7o57 zeal replica bags reviews site link y5u90g9p55 cheap designer bags replica replica bags london

    ReplyDelete
  21. Thanks for sharing this post about REBOL Module Names I appreciate your work because you are providing good data I suggest you please keep up your great work on your site I will come again. Anyhow, try this service if you ever need help in accounting assignment because they offer assignment help in the UK at incredibly low costs, for more info click this link.

    ReplyDelete
  22. Using CC0 textures in your projects can also save you time. Rather than spending hours creating your own textures, you can simply search through the available CC0 textures and choose the one that best fits your needs.

    ReplyDelete
  23. When you choose us, you are not only selecting a best painting company in Dubai but embarking on a journey of transformation. From start to finish, we strive to surpass expectations, exceed industry standards, and breathe new life into your spaces. Discover the pinnacle of painting excellence in Dubai with us where craftsmanship meets innovation, and every brushstroke tells a story of beauty and sophistication.

    ReplyDelete