|
||||||
|
||||||
Part 18 - Duck typing
Part 18 - Duck Typing
Even though Boo is a statically typed language, Duck Typing is a way to fake being a dynamic language. Duck typing allows variables to be recognized at runtime, instead of compile time. Though this can add a sense of simplicity, it does remove a large security barrier. Duck Typing Example Output 5 15 Hi there HI THERE Duck typing is very handy if you are loading from a factory or an unpredictable dynamic library.
On a side note, The Here is a practical example of where duck typing is useful. Practical Duck Typing Exercises
Go on to Part 19 - Using the Boo Compiler |
||||||
|
Copyright 2003-2006 - The Codehaus. All rights reserved unless otherwise noted.
Powered by Atlassian Confluence
|
||||||