We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
2024/1/21 更新
以前(#225)も話があったように値として比較する用途の方が多いと思うので、==演算子でもdeep-equalされるが良いと思います。 ただ、参照比較もあるほうが良さそうです。
==
例えば
===
refeq
例
x.ref_eq(y); Core:ref_eq(x, y);
The text was updated successfully, but these errors were encountered:
関数の値としての比較(関数内の命令列や関数の型情報などになる?)はあまり必要ないと思われるので非サポートでいいかも ==で比較されたときは、エラーでもいいけど参照比較にフォールバックするのもアリ
2024/1/21 更新 意味が変わるのでフォールバックするのはやめたほうが良いかも
Sorry, something went wrong.
確かに関数って足したり引いたりするわけじゃないから内容が同じものが複数登場することがほぼ無いのか… 連想配列でも参照比較でよさそう?
関数の場合でも、無名関数など構造的に似ている実体はあるにはあります。 ただそれらを実体で比較したいことがあまりないと思われるので...
No branches or pull requests
2024/1/21 更新
以前(#225)も話があったように値として比較する用途の方が多いと思うので、
==
演算子でもdeep-equalされるが良いと思います。ただ、参照比較もあるほうが良さそうです。
例えば
==
演算子をdeep-equalにする (使用頻度が高いため2文字の演算子)===
refeq
例
The text was updated successfully, but these errors were encountered: