You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The vanilla compiler can compare strings. It behaves like you would expect from any sensible language, returning the alphabetical order.
However, Caprica doesn't allow you to compile a script which attempts to compare two strings.
The text was updated successfully, but these errors were encountered:
Currently it coerces both operands to the same type and then throws an error if the left operand isn't an Int or a Float. The fix would be to split the magnitude comparison cases from the number-specific operator ones. The comparisons should be valid when both operands are strings or are numbers.
The vanilla compiler can compare strings. It behaves like you would expect from any sensible language, returning the alphabetical order.
However, Caprica doesn't allow you to compile a script which attempts to compare two strings.
The text was updated successfully, but these errors were encountered: