Ask a Question related to Ruby, Design and Development.
-
Thien Vuong #41
Re: Strong Typing (Re: Managing metadata about attribute types)
KUSUNOSE Toru wrote:Definitely. I could see much good use of it.>>>
>
> Sometimes, the latter is better.
>
Just only wanted to point out that it is not always one way or another.
Thanks for pointing it out. I wonder if I have some code needs to check> For example, think Tempfile class. An instance of Tempfile
> class responds to every methods an instace of the File class has,
> so surely its type is File. But tmpfile.is_a? File is false.
>
if it has a file behaviour or not (say the stream behavior plus about
10 differrent methods), how could I do it concisely? I could structure
the application such that it is not necessary, but it is not always
possible nor desirable to do so.
>Thien Vuong Guest
-
Strong Typing (Managing metadata about attribute types)<Pine.LNX.4.44.0311171402340.1133-10
> I don't advocate type checking much in either case. It is a performance the programming language euphoria has an interesting approach to this.... -
Managing metadata about attribute types<Pine.LNX.4.44.0311082124290.32662-100000@ool-4355dfae.dyn.optonline.net>
Hi -- On Sun, 9 Nov 2003, Ryan Pavlik wrote: The point is that objects which have methods defined in their singleton classes are no longer... -
Managing metadata about attribute types<Pine.LNX.4.44.0311082012580.32527-100000@ool-4355dfae.dyn.optonline.net>
Hi -- On Sun, 9 Nov 2003, Ryan Pavlik wrote: You must not be a big fan of class methods :-) David -
Managing metadata about attribute types<Pine.LNX.4.44.0311080757320.9904-100000@ool-4355dfae.dyn.optonline.net>
Hi -- On Sat, 8 Nov 2003, John W. Long wrote: There's no improvement in error messages that I can see with the StrongTyping module, and of... -
Managing metadata about attribute types<Pine.LNX.4.44.0311060707150.5008-100000@ool-4355dfae.dyn.optonline.net>
Hi -- On Thu, 6 Nov 2003, Ryan Pavlik wrote: At this point you're waging a battle directly against the design of Ruby. Ruby allows you to...



Reply With Quote

