Zulip Chat Archive

Stream: general

Topic: where clause


Greg Shuflin (Jan 14 2025 at 11:51):

In Haskell, when you're writing a complicated function that has multiple pieces of functionality, it's often useful to break out those pieces of functionality into several complicated functions introduced by a where clause. Lean doesn't seem to have this syntax, just let. Is this a principled and deliberate syntax decision, or did no one get around to implementing where clauses?

Damiano Testa (Jan 14 2025 at 11:54):

You mean something like this?

Greg Shuflin (Jan 14 2025 at 11:56):

oh so there is a where syntax

Greg Shuflin (Jan 14 2025 at 11:56):

just wasn't documented in a place I could find


Last updated: May 02 2025 at 03:31 UTC