Newsgroups: comp.lang.lisp
From: Pascal Costanza <p...@p-cos.net>
Date: Thu, 02 Feb 2006 01:22:36 +0100
Local: Wed, Feb 1 2006 7:22 pm
Subject: Re: Static/Dynamic typing, lessons from the field
dominikus wrote: The example I was referring to was posted to the ll-discuss mailing list > Pascal, you mentioned that you have only seen one example so far, where > static typing provides something that looks impossible to do in a > dynamically typed language. > Could you elaborate on that since I didn't get the point in your brief a while ago. See http://people.csail.mit.edu/gregs/ll1-discuss-archive-html/msg04650.html To quote from that posting: "Static typing can make programs more concise: I can write getLine >>= print . (/2) . read or getLine >>= print . not . read rather than getLine >>= print . (/2) . readDouble or getLine >>= print . not . readBool What happens here is that the correct read function is selected by the It's interesting to read the discussion that follows the posting above. This was the first time I have seen a real example of increased Pascal -- You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
| ||||||||||||||