Re: [q-lang-users] Special values or failing functions
Brought to you by:
agraef
From: John C. <co...@cc...> - 2007-05-16 22:03:15
|
Alexander Nickolsky scripsit: > I do not think it's very readable. Wouldn't it be nice to have a > common 'special' value like nil or NULL or whatever, to indicate > failure ? Any value for which there are no reduction rules will serve the purpose, since failure in Q just means being in normal form already. So just write "const NULL;" at the top of your code, and all will be well. -- You're a brave man! Go and break through the John Cowan lines, and remember while you're out there co...@cc... risking life and limb through shot and shell, http://ccil.org/~cowan we'll be in here thinking what a sucker you are! --Rufus T. Firefly |