Open librasteve opened 1 month ago
comments ... suggest that the use of the
is prec
trait is not supported
To be more specific:
A search of roast for "is prec" shows no matches.
The search of the doc for "is prec" shows no matches.
The Operators page of the doc says "you cannot access [the ==>
etc] precedence level when setting the precedence of custom operators".
tx @raiph I will MRP this a bit and revert
Recently I tried this code as part of a blog post
The
is prec(prec => ‘f=’)
trait on the proto was suggested in a comment by @wamba.While the example above errors, applying the
is prec
at the candidate level DOES WORK:However, comments in the SO by @raiph suggest that the use of the
is prec
trait is not supported:Therefore, I am proposing via this Problem Solving Issue to somehow enable and support the setting of custom operator precedence equivalent to Sequencer (ie feed
==>
) level.Perhaps this can be done by simply documenting the working example I give above, perhaps the
is prec
trait is deprecated and due for removal, in which case a modification of the way feed operator syntax works would be needed.A comment by @ab5stract via IRC/Discord suggests a review of precendence levels should include specifying the desired level with an enum. https://discord.com/channels/538407879980482560/633753286209699870/1295463553918308435