The Artima Developer Community
Sponsored Link

Weblogs Forum
Programming with "Duh" Typing

370 replies on 371 pages. Most recent reply: Aug 8, 2007 9:54 AM by James Watson

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 370 replies on 371 pages [ « | 1 ... 183 184 185 186 187 188 189 190 191 ... 371  | » ]
James Watson

Posts: 2024
Nickname: watson
Registered: Sep, 2005

Re: Programming with "Duh" Typing Posted: Jul 17, 2007 8:56 AM
Reply to this message Reply
Advertisement
> > The issue I mention above is not related to subtyping.
> I
> > don't understand how you made that connection.
>
> It's simple: an interface does not guarantee type safety:
> the wrong class with the right interface can be at the
> wrong place at the wrong time, thus creating havoc with
> the program.

There are a couple problems with this argument. First is that it's and example of the 'no perfect solution fallacy'

http://en.wikipedia.org/wiki/Perfect_solution_fallacy

In fact the problem you describe has almost never happened to me when using a static language.

Secondly there is a lot more that static typing does than provides protection against this kind of problem.

Thirdly, it's not related to the problem I was discussing.

Flat View: This topic has 370 replies on 371 pages [ « | 183  184  185  186  187  188  189  190  191 | » ]
Topic: Programming with "Duh" Typing Previous Topic   Next Topic Topic: Python 3000 Plea for Help

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use