Re: Proposition & PATCH: Add a "letrec" builtin function

2025-01-12 Thread Jouke Witteveen
On Sat, Jan 11, 2025 at 3:40 AM Pete Dietl wrote: > You need a recursive let if you want to be able to define inner functions, > like a helper function. That much I understand, but I cannot come up with many scenarios where that would make sense in Make. Whenever the definition of the inner func

Re: Proposition & PATCH: Add a "letrec" builtin function

2025-01-10 Thread Pete Dietl
Jouke, You need a recursive let if you want to be able to define inner functions, like a helper function. On Mon, Dec 30, 2024, 5:21 AM Jouke Witteveen wrote: > Hi Pete, > > On Thu, Dec 26, 2024 at 7:44 AM Pete Dietl wrote: > > I propose adding a "letrec" builtin to complement the "let" builti

Re: Proposition & PATCH: Add a "letrec" builtin function

2024-12-30 Thread Jouke Witteveen
Hi Pete, On Thu, Dec 26, 2024 at 7:44 AM Pete Dietl wrote: > I propose adding a "letrec" builtin to complement the "let" builtin. > The "let" builtin does not allow one to define inner functions or > mutually recursive definitions. Can you maybe help me understand why this functionality would be