Optional typechecking
Steve had a quote about type inference on his blog and it reminded me of something. I seem to always come back to Dylan when looking for good ways to do something. Like optional (runtime) typechecking...
In Dylan, you can write a strict version, which checks the argument and the return type:
In Dylan, you can write a strict version, which checks the argument and the return type:
define method double (thing :: <number>)Or leave it completely open:
=> another-thing :: <number>;
thing + thing;
end method;
define method double (thing)Sometimes you don't care what kind of argument you get, you just pass it on. But sometimes you do, and it's nice when the system can tell you exactly where you went wrong.
thing + thing;
end method;
1 Comments:
wow power leveling
wow powerleveling
wow power leveling
wow gold
wow items
feelingame.com
wow tips
Most Valuable WOW Power Leveling Service
wow power leveling faq
cheap wow power leveling
wow power leveling
wow powerleveling
wow power lvl
By Anonymous, at 10:37 PM
Post a Comment
<< Home