Welcome to WhereTraits.jl. This package exports one powerful macro @traits with which you can extend Julia's where syntax in order to support traits definitions. In addition, WhereTraits comes with a standardized way how to resolve ambiguities among traits, by defining an order among the traits with @traits_order. Under the hood @traits uses normal function dispatch to achieve the speed and flexibility, however, julia function dispatch can lead to ambiguities. With traits these can easily happen if someone defines @traits for the same standard dispatch but using different traits.
Features
- Dispatch on functions returning Bool
- Dispatch on functions returning anything
- Dispatch on upperbounds on functions returning Types
- WhereTraits comes with special support for resolving ambiguities among traits dispatch
- Documentation available
- Examples available
Categories
Data VisualizationLicense
MIT LicenseFollow WhereTraits.jl
Other Useful Business Software
Compliant and Reliable File Transfers Backed by Top Security Certifications
Stop relying on non-certified, legacy file transfer tools that creak under the weight of modern security demands. Get full audit trails, advanced access controls and more supported by an award-winning team of experts. Start your free 25-day trial today.
Rate This Project
Login To Rate This Project
User Reviews
Be the first to post a review of WhereTraits.jl!