[IronPython] Questions for FAQ or User Guide
Martin Maly
martmaly at exchange.microsoft.com
Wed Apr 20 20:17:09 CEST 2005
That is a good suggestion. The initial look shows that it would be quite
possible to implement it. I'll give it a try.
Martin
-----Original Message-----
From: users-ironpython.com-bounces at lists.ironpython.com
[mailto:users-ironpython.com-bounces at lists.ironpython.com] On Behalf Of
Richard Monson-Haefel
Sent: Tuesday, April 19, 2005 6:29 PM
To: Discussion of IronPython
Subject: Re: [IronPython] Questions for FAQ or User Guide
It might be better if IronPython auto converted the list of real number
to an array in this case. If, that is, all the types in the list can be
widened to the correct type, or if the parameter is an array of
objects. That way you don't have to call an explicit method to set the
list to an array of Double types.
The reason, I think this is important, is that in Python developers
will avoid explicit typed of arrays in favor of loose typed lists
because its more Pythonic. Since interaction with general purpose
languages (strongly typed) will require more strict typing, the
interpreter or compiler should make that transformation (from List to
array of doubles) implicitly, or if it can't be done throw an
exception. Otherwise, you are forcing IronPython developers to adhere
to strict typing whenever they script interactions of objects defined
by general purpose languages like C#.
richard
More information about the Ironpython-users
mailing list