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 ... 184 185 186 187 188 189 190 191 192 ... 371  | » ]
Vincent O'Sullivan

Posts: 724
Nickname: vincent
Registered: Nov, 2002

Re: Programming with "Duh" Typing Posted: Jul 17, 2007 2:25 PM
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.

I suspect this is an theoretical problem. I can't say I've ever come across it in many years of coding

> And then we have the problem of null...static type
> checking is useless in this area, unless null is made a
> type.

Yes it's a problem. Better null handling would strengthen static typing.

> But then we step into functional programming
> territory, where nullable types are algebraic.

But so what? Are you saying adopting features of functional programming for static typing is bad? It seems to me that all that is happening is that the [dodgy analogy]goal posts in the argument are being steadily shifted whenever a shot is lined up[/dodgy analogy].

Flat View: This topic has 370 replies on 371 pages [ « | 184  185  186  187  188  189  190  191  192 | » ]
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