|
List Info
Thread: Case-sensitive behavior of clone?
|
|
| Case-sensitive behavior of clone? |

|
2006-05-23 07:06:00 |
|
> Think about this for a minute. Consider:
>
> a := 42
> a type // "a" and not Number
>
> What would you do about cases like this? I mean, say I have a method:
>
> doStuff := method(x, y,
> if(x type == Number type, ...)
> ...
> )
>
> There's no way I can check this anymore; how would I make sure a
> slot holds an object of a specific type?
If I wrote the method, and am calling it, I should have some
confidence that I'm calling it with the correct arguments-
If this is input from an unknown source, shouldn't I have performed
my input validation long previous with a regex or something?
(at least, that's the way *I* think) 
Meaningful case is almost as blasphemous as meaningful whitespace to
me, and I would think that all the "type" information you could ever
need for anything could be obtained from an object's protos list if
you thought ahead and built the hierarchy right...
|
| Case-sensitive behavior of clone? |

|
2006-05-24 01:13:33 |
|
> Meaningful case is almost as blasphemous as meaningful whitespace to
> me, and I would think that all the "type" information you could ever
> need for anything could be obtained from an object's protos list if
> you thought ahead and built the hierarchy right...
Iseriouslycan'tunderstandwhatyourproblemiswithwhitespace.
Trent
|
| Case-sensitive behavior of clone? |

|
2006-05-24 01:23:45 |
|
>
>> Meaningful case is almost as blasphemous as meaningful whitespace to
>> me, and I would think that all the "type" information you could ever
>> need for anything could be obtained from an object's protos list if
>> you thought ahead and built the hierarchy right...
>
> Iseriouslycan'tunderstandwhatyourproblemiswithwhitespace.
hAhA
i
mEaNt
iN
tHe
pYtHoN
sEnSe
|
[1-3]
|
|
|
about | contact Other archives ( Real Estate discussion Medical topics )
|