Advantages of Definition over Let

During a conversation with Matt Flatt , one of the main authors of Racket, I was told (in passing) that the let form is not recommended by the community and is largely replaced by define .

What are the benefits of define over let that encourage the Racket community to choose to use instead of let ?

For reference, define and let from the Racket documentation are linked here.

+6
source share
1 answer

"To reduce the offset to the right"

See section 4.2 for definitions: http://www.ccs.neu.edu/home/matthias/Style/style/Choosing_the_Right_Construct.html

However, I see this mainly as a matter of taste.

+6
source

All Articles