[plt-scheme] Perplexed Programmers

From: Matthias Felleisen (matthias at ccs.neu.edu)
Date: Sat Sep 1 11:21:57 EDT 2007

Dynamic typing is the default and makes writing simple and
nearly useful programs easy at the beginning. What do you
mean w/ your question. -- Matthias




On Sep 1, 2007, at 11:13 AM, Marco Morazan wrote:

>>
>> No! What you could do is -- say after three or four weeks -- have
>> students spell out the structure of the data with code:
>>
>>  (define-data List-of-numbers
>>    empty
>>    (cons Number List-of-numbers)))
>>
>> and annotate functions with input types:
>>
>>  (define: (f {l : List-of-numbers})
>>    (cond
>>      [(empty? l) ...]
>>      [(cons? l) ... (first l) ... (f (rest l)) ...]))
>>
>
> Just a related inquiry. This typing discipline has its benefits as is
> routinely discussed on this list. The benefits of dynamic typing,
> however, seem to receive little attention. When do readers of this
> list suggest introducing the notion of dynamic typing?
>
> Cheers,
>
> Marco



Posted on the users mailing list.