Open github-actions[bot] opened 1 year ago
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
[VM/values/comparison] add
<
/>
support for Regex values? currently,=
is supported but not<
and>
! Another tricky one: the logic should be either the same as with strings, or disallow comparison altogether and throw an error. In the first case, since Regex values encapsulate a VRegex object (from values/custom/vregex) the ideal implementation would be done there (adding a>
and<
operator to VRegex) and then link the method here :-)https://github.com/arturo-lang/arturo/blob/269a723e23971f7c5ba310f6c3539852a6f016e3/src/vm/values/comparison.nim#L256
450105e244b8e53efbd9e433c07de40b7598fab6