On Wed, Dec 22, 2010 at 12:36 PM, Neil Van Dyke <[email protected]> wrote: > Why is ":" preferred to "define:", when usually you're just going to follow > the ":" form with a "define" form? > > The Typed Racket Reference says: > >> In most cases, use of ":" is preferred to use of "define:".
Two reasons: 1. Adding `:' before the definition allows you not to change the existing untyped definition. This is good for diffs, for example. 2. I greatly prefer the visual appearance using `:' -- `define:' results in lots of syntactic noise. Similarly, I prefer Haskell-style type annotation to ML-style in those languages. -- sam th [email protected] _________________________________________________ For list-related administrative tasks: http://lists.racket-lang.org/listinfo/users

