Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [jdt-dev] Re: idea for refactoring

>    d = 5
>    func (1,2,d=3,d,x=4)
>
>would work. args would be [5] and kw = { "x": 4 } ([] is a python list, {} is 
>a hashmap).

Yes, I understand this, but if I want to put d=5 in the hashmap, it gets 
confusing to the reader and the compiler...

My only point is that while this looks convenient, and proves to work most of 
the time just fine, it does provide an opportunity for the wrong thing to 
happen, often mysteriously from the users perspective...

-----
gregg@xxxxxxxxxxxx  (Cyte Technologies Inc)




Back to the top