Difference between “local” and “let” in SML
问题 I couldn't find a beginner friendly answer to what the difference between the "local" and "let" keywords in SML is. Could someone provide a simple example please and explain when one is used over the other? 回答1: (TL;DR) Use case ... of ... when you only have one temporary binding. Use let ... in ... end for very specific helper functions. Never use local ... in ... end . Use opaque modules instead. Adding some thoughts on use-cases to sepp2k's fine answer: (Summary) local ... in ... end is a