home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.prolog
- Path: sparky!uunet!infonode!ingr!capalo!quintus!quintus!jonas
- From: jonas@quintus.com (Jonas Almgren)
- Subject: Re: SICStus Prolog singleton warnings slow down while consulting a file
- Message-ID: <1992Aug19.191546.15336@quintus.com>
- Sender: news@quintus.com (USENET news account)
- Nntp-Posting-Host: page
- Organization: Quintus Corporation
- References: <1992Aug17.172126.19111@watson.ibm.com> <MATSC.92Aug17231714@vishnu.sics.se>
- Date: Wed, 19 Aug 1992 19:15:46 GMT
- Lines: 11
-
- It's probably a bad idea to completely switch off singleton warnings.
- You'll definitely have to pay a price in uncaught bugs as you keep on
- with the development of your program.
-
- I'm not sure about SICStus, but in Quintus Prolog, it's enough to
- use '_' (underscore) as the first character in the variable name,
- and no singleton warning will be given for that variable. Personally,
- I think it's good programming style to use such variable names for
- singeltons, whenever it isn't clear from the context why the singleton
- can be ignored. As Ralf points out, just a '_' doesn't make the code more
- readable.
-