Questions Concepts
GitHub icon

Duck Typing

Duck Typing - language feature

< >
Example from Jule:
fn lock_object[T](obj: T) { obj.lock() }

Languages with Duck Typing include Python, Ruby, Cython, Jule

Languages without Duck Typing include C3, Speedie

This question asks: Are types defined not by their name, but by the presence of certain methods and properties?

Read more about Duck Typing on the web: 1.

HTML of this page generated by Features.ts

View source

- Build the next great programming language Search Add Language Features Creators Resources About Blog Acknowledgements Queries Stats Sponsor Traffic Traffic Today Day 305 feedback@pldb.com Logout