shithub: mc

ref: c5a41d7c6bb10c1f384cce78953355b1c0c1e6f2
dir: /parse/trait.def/

View raw version
/* Definitions of built in constraints */
Tc(Tcnum,       "numeric")      /* arith ops */
Tc(Tcint,       "integral")     /* behaves like an int, defaults to int as fallback */
Tc(Tcfloat,     "floating")     /* behaves like a float, defaults to float as fallback */
Tc(Tcidx,       "indexable")    /* indexable */
Tc(Tcslice,     "sliceable")    /* sliceable */
Tc(Tcfunc,      "function")     /* behaves like a function */