🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.prolog
Article #668

Re: SICStus Prolog singleton warnings slow down while consulting a file

#668
From: Jonas Almgren
Date: Wed, 19 Aug 1992 19:15
11 lines
1128 bytes
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.
Technical Details
Message-ID: <1992Aug19.191546.15336@quintus.com>
Path: arc1-ca.pugleaf.net!sparky!uunet!infonode!ingr!capalo!quintus!quintus!jonas
References: <1992Aug17.172126.19111@watson.ibm.com> <MATSC.92Aug17231714@vishnu.sics.se>

Show Full Headers
Complete Article Headers
Newsgroups: comp.lang.prolog
Path: arc1-ca.pugleaf.net!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