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

Project Samples

Project Activity

See All Activity >

License

MIT License

Follow WhereTraits.jl

WhereTraits.jl Web Site

You Might Also Like
Make Recruiting and Onboarding Easy Icon
Make Recruiting and Onboarding Easy

Simple, easy-to-use applicant tracking and employee Onboarding system for any sized organization.

Take away the pain and hassle associated with applicant recruitment, hiring, and onboarding with ApplicantStack. Designed for HR professionals and recruiters, ApplicantStack helps streamline the recruiting and onboarding processes to improve productivity and reduce costs. ApplicantStack provides a complete toolkit that includes tools for posting, launching, and advertising jobs, assessing and managing candidates, collaborating with teams, centralizing information for quick hiring and onboarding, and more.
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of WhereTraits.jl!

Additional Project Details

Programming Language

Julia

Related Categories

Julia Data Visualization Software

Registered

2023-12-14