Re: [q-lang-users] where
Brought to you by:
agraef
From: Eddie R. <ed...@bm...> - 2006-10-09 21:27:39
|
Albert Graef, My thinking was about the use of if then else, cond, and case statements and infinite recursion causing a segment fault on Linux. I was thinking that the global "where" would cut down on some typing. However, the real solution to my problem happens to be assert.q. Somehow I overlooked this. Shame on me! Bug hunting just got a lot easier. Thanks! Eddie > Albert Graef wrote: >> Of course there's an existing solution to this, namely Haskell's >> guarded >> equation syntax, but that also looks fairly messy IMHO. Oh well, I >> guess >> I'll have to take another look at Miranda to see if Turner already >> solved that problem. > > I just checked that, and AFAICT in Miranda there are no local > definitions shared by different equations either. Given that most of > these usage cases can be handled quite conveniently with if-then-else > and case, I'm not really convinced that we need the proposed extension. > Other opinions? > > Albert > > -- > Dr. Albert Gr"af > Dept. of Music-Informatics, University of Mainz, Germany > Email: Dr....@t-..., ag...@mu... > WWW: http://www.musikinformatik.uni-mainz.de/ag > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share > your > opinions on IT & business topics through brief surveys -- and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > _______________________________________________ > q-lang-users mailing list > q-l...@li... > https://lists.sourceforge.net/lists/listinfo/q-lang-users > |