Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #53550
| References | <8bc2f539-ae7a-4cd8-83c0-91449aecd616@googlegroups.com> <7xfvtnwsn9.fsf@ruckus.brouhaha.com> <52245df4$0$2743$c3e8da3$76491128@news.astraweb.com> <pan.2013.09.03.01.10.36.789000@nowhere.com> |
|---|---|
| Date | 2013-09-02 21:36 -0400 |
| Subject | Re: A Pragmatic Case for Static Typing |
| From | Joel Goldstick <joel.goldstick@gmail.com> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.531.1378172203.19984.python-list@python.org> (permalink) |
On Mon, Sep 2, 2013 at 9:10 PM, Nobody <nobody@nowhere.com> wrote: > On Mon, 02 Sep 2013 09:44:20 +0000, Steven D'Aprano wrote: > >> One factor I don't see very often mentioned is that static typing >> increases coupling between distant parts of your code. If func() changes >> from returning int to MyInt, everything that calls func now needs to be >> modified to accept MyInt, no matter how similar MyInt is to int. You have >> to make changes just to satisfy the compiler. > > Not if the language has type inference (e.g. Haskell, or C++ templates). > > -- > http://mail.python.org/mailman/listinfo/python-list My personal reason for working with python (dynamic typing) as opposed to Java or C++ is that (in general) I don't like company environments that use Java or C++. Its the world of huge software teams. Python seems to be more in vogue in smaller environments which suit my interests. I used to write in C and a little C++ back in the Borland C++ days (90s?). I'm not familiar with Haskell, except having heard the name, but I also know it isn't as popular in the job market as say python or ruby or C++ or Java. So, while I'm off topic, sometimes the reason to choose one methodology over another has to do less with the merits than on other factors. That said, python 'feels' extremely right to me. Having come from PHP for the last dozen years that shouldn't surprise anyone! -- Joel Goldstick http://joelgoldstick.com
Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
A Pragmatic Case for Static Typing "Russ P." <Russ.Paielli@gmail.com> - 2013-09-01 21:24 -0700
Re: A Pragmatic Case for Static Typing Paul Rubin <no.email@nospam.invalid> - 2013-09-02 01:10 -0700
Re: A Pragmatic Case for Static Typing Steven D'Aprano <steve@pearwood.info> - 2013-09-02 09:44 +0000
Re: A Pragmatic Case for Static Typing Roy Smith <roy@panix.com> - 2013-09-02 09:37 -0400
Re: A Pragmatic Case for Static Typing Nobody <nobody@nowhere.com> - 2013-09-03 02:10 +0100
Re: A Pragmatic Case for Static Typing Joel Goldstick <joel.goldstick@gmail.com> - 2013-09-02 21:36 -0400
Re: A Pragmatic Case for Static Typing Chris Angelico <rosuav@gmail.com> - 2013-09-02 22:04 +1000
Re: A Pragmatic Case for Static Typing Roy Smith <roy@panix.com> - 2013-09-02 08:41 -0400
Re: A Pragmatic Case for Static Typing Chris Angelico <rosuav@gmail.com> - 2013-09-03 08:43 +1000
Re: A Pragmatic Case for Static Typing "Russ P." <Russ.Paielli@gmail.com> - 2013-09-02 11:33 -0700
csiph-web