Re: Passing type hints to a body of code in a macro

2010-11-21 Thread Ken Wesson
On Sun, Nov 21, 2010 at 12:21 PM, Shantanu Kumar wrote: > Hi, > > Not sure if it makes sense, but I thought I'd ask anyway. Why are type > hints in a macro not passed to a body of code executed inside? > > user=> (set! *warn-on-reflection* true) > true > user=> (def s "Hello world") > #'user/s > u

Passing type hints to a body of code in a macro

2010-11-21 Thread Shantanu Kumar
Hi, Not sure if it makes sense, but I thought I'd ask anyway. Why are type hints in a macro not passed to a body of code executed inside? user=> (set! *warn-on-reflection* true) true user=> (def s "Hello world") #'user/s user=> (.length s) Reflection warning, NO_SOURCE_PATH:28 - reference to fiel