[IronPython] Questions for FAQ or User Guide
bob at redivi.com
Wed Apr 20 20:39:19 CEST 2005
It's certainly possible, PyObjC does a lot of conversions like this and
it works rather well.
On Apr 20, 2005, at 2:17 PM, Martin Maly wrote:
> That is a good suggestion. The initial look shows that it would be
> possible to implement it. I'll give it a try.
> -----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#.
> users-ironpython.com mailing list
> users-ironpython.com at lists.ironpython.com
More information about the Ironpython-users