Open github-actions[bot] opened 1 year ago
The question is: when is Inline A smaller than Inline B? How do other languages handle this?
Nowadays, it compares their sizes: vm/value/comparison
at lines 368
-370
, but I don't like this approach, I prefer explicitly compare their sizes with ensure -> (size [a b c]) > (size [a b])
, for example.
The same works for :inline
s and :block
s
Or with a more readable code:
ensure -> greater?
size [a b c]
size [a b]
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 Inline values? currently,=
is supported but not<
and>
! since Inline values are pretty much identical to Block values - internally - comparison operators should work for them in an identical fashion. The question is: when is Inline A smaller than Inline B? How do other languages handle this? see also: https://github.com/arturo-lang/arturo/pull/1139https://github.com/arturo-lang/arturo/blob/269a723e23971f7c5ba310f6c3539852a6f016e3/src/vm/values/comparison.nim#L281
7f3af249d2ccbb0568659dac75381041ca7330ea