|
Fwd: [fsharp] RE: Tail Recursion: msg#00024lang.nemerle.devel
I guess it would be nice to have also in Nemerle. ---------- Forwarded message ---------- From: Don Syme <Don.Syme@xxxxxxxxxxxxx> Date: May 24, 2006 9:36 PM Subject: [fsharp] RE: Tail Recursion To: F# List <fsharp@xxxxxxxxxxxxxxxxxxxxxxxxxxx> Yes indeed, e.g. an attribute: [<TailRecursive>] let rec N n = if n = 0 then [] else n :: N(n - 1) would give a compile-time error. We'll try to add that for the next release. In the mutual recursive case we'll have to decide the meaning of attributing one definition. Don -----Original Message----- From: bounce-fsharp-6488@xxxxxxxxxxxxxxxxxxxxxxxxxxx [mailto:bounce-fsharp-6488@xxxxxxxxxxxxxxxxxxxxxxxxxxx] On Behalf Of Jan Rehders Sent: 24 May 2006 19:17 To: F# List Subject: [fsharp] RE: Tail Recursion Hi, a tool to check whether a function is tail recursive would be a great thing to have. I find myself often wondering whether some function is tail recursive or not. Having the IDE or the compiler check this would be great. I could prevent errors like this easily. I can imagine this to be integrated in the IDE to indicate tail recursive functions with an icon. Or the language could even provide a "let tailrec" like statement to let such errors be caught by the compiler with best regards, Jan Rehders On 24. Mai 2006, at 17:13, Christopher Diggins wrote: Thanks Frank, --- You are currently subscribed to fsharp as: don.syme@xxxxxxxxxxxxx To unsubscribe send a blank email to leave-fsharp-10729U@xxxxxxxxxxxxxxxxxxxxxxxxxxx Please see our Privacy Statement: http://list.research.microsoft.com/privacy/privacy.htm --- You are currently subscribed to fsharp as: malekith@xxxxxxxxxxxxx To unsubscribe send a blank email to leave-fsharp-10729U@xxxxxxxxxxxxxxxxxxxxxxxxxxx Please see our Privacy Statement: http://list.research.microsoft.com/privacy/privacy.htm -- Michał
|
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Re: Nemerle compiler, Kamil Skalski |
|---|---|
| Next by Date: | accessor macro question, mei |
| Previous by Thread: | Nemerle compiler, Andrei Faber |
| Next by Thread: | accessor macro question, mei |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |