#haskell - Sun 18 Feb 2007 between 19:57 and 20:04

NY Lost Funds



lambdabotAye Aye Cap'n
Nafaidcoutts: Awesome!
dcouttsdons, now to retry glibc
that needs nested functions to parse fully
but I'm not sure if I care about them
no one uses nested functions in C
EvilTerran<_< >_>
SamBmostly because they suck
EvilTerranI've used 'em...
astrolabebut they could
see :)
dcouttsindeed, they don't outlast the call they're defined in them
smddarius: aha.. do you have a simple guideline for where I can use where ?
SamBalso, they are a rare feature...
augustssastrolabe: but to return to Haskell and practical matters. I have very good examples where I can define Num, but not Eq for a DSEL. And Eq is a totally gratuitous superclass of Num.
smonly at the end of an equation ?
astrolabeaugustss: On consideration, that seems sensible.
EvilTerrani think it was because i was being sloppy and it was mildly better than the alternative (being global variables)
smddarius: and also, would this mean that indentation of where doesn't matter ?
ddariussm: Where scopes over guards and otherwise is attached to each case of a function definition.
actionaraujo had to abort the gtk2hs compilation again
araujohad to abort the gtk2hs compilation again
dcouttsaraujo, oh?
araujodcoutts, don't know what happens :-(
ddariussm: No the indentation of where itself doesn't really matter as long as it doesn't stop an earlier block, i.e. as long as it's at least as indented as the function it belongs to.
augustssdcoutts: No one uses nested functions in C because there are none. :)
dcouttsaugustss, hmm?
dons?where jhc
lambdabothttp://repetae.net/john/computer/jhc/
augustssdcoutts: you said "no one uses nested functions in C"
ftegulariusaugustss: i think they were introduced into C89 or C90, but they only have partial compiler support
dcouttsaugustss, GNU C has it as an extension, but it's rarely used
EvilTerranthere aren't any in K&R C, that's true, but they're in GCC, and i'm pretty sure they're in C99
maukenot in C99
dcouttsEvilTerran, no, not C99
augustssdcoutts: I know it's a GNU C extension
smddarius: thank you.. I guess I'm still a little puzzled why it didn't work in this case then
araujodcoutts, can i query where it gets stuck the installation?
dcouttsaugustss, ok I should have said "(almost) no one uses nested functions in (GNU) C" :-)
hpastesm pasted "where doesn't see subaccts" at http://hpaste.org/550
dcouttsaraujo, look at the build output

Page: 2 9 16 23 30 37 44 51 58 65 

IrcArchive

NY Lost Funds