User loginNavigation |
Very Quick Question On "where" vs. "letrec", "letfn", "labels", etc.This is (I believe) a simple, trivial question. Is there any difference between Haskell style "where" clauses on function definitions and using similar "letrec", "letfn" or "labels" forms in other languages. We can restrict the definitions within these forms to plain function definitions, for the sake of argument. So where we might have (forgive any syntactic faux pas).
Can we always substitute an equivalent (using a hypothetical labels form, for the sake of argument):
I'm just curious if these "where" clauses are naught more than syntactic surgar for other forms more familiar to me. Thanks much in advance, and no, this is *not* a homework assignment (I'm 45 years old today). - Scott. By scottmcl at 2011-03-12 02:40 | LtU Forum | previous forum topic | next forum topic | other blogs | 4589 reads
|
Browse archivesActive forum topics |
Recent comments
2 weeks 7 hours ago
4 weeks 1 day ago
13 weeks 3 days ago
13 weeks 5 days ago
14 weeks 2 hours ago
21 weeks 50 min ago
26 weeks 4 days ago
26 weeks 5 days ago
27 weeks 4 days ago
30 weeks 3 days ago