Value comparation rework #60

オープン
belliash2019-11-02 17:31:48 +01:00に作成 · 1件のコメント
オーナー

The actual value comparation implemented by PH7 Engine is trying to imitate PHP behavior. First of all, NULL < -1, and NULL == 0. Sorting is thus nondeterministic. Secondly, objects compare as greater than anything else except other objects, which they are neither less than nor greater than. Finally, comparison operators try to sort arrays, two different ways: first by length, then by elements. If they have the same number of elements but different sets of keys, though, they are non comparable.

This needs comparation mechanism to be rewritten and fixed.

The actual value comparation implemented by PH7 Engine is trying to imitate PHP behavior. First of all, NULL < -1, and NULL == 0. Sorting is thus nondeterministic. Secondly, objects compare as greater than anything else except other objects, which they are neither less than nor greater than. Finally, comparison operators try to sort arrays, two different ways: first by length, then by elements. If they have the same number of elements but different sets of keys, though, they are non comparable. This needs comparation mechanism to be rewritten and fixed.
belliash がラベル
bug
aerscript
を追加 2019-11-02 17:31:48 +01:00
作成者
オーナー

NULL comparison fixed with eead19918d

NULL comparison fixed with eead19918d
サインインしてこの会話に参加。
1 人の参加者
通知
期日
期日は設定されていません。
依存関係

依存関係は設定されていません。

リファレンス: aerscript/Aer#60
説明はありません。