arturo-lang / arturo

Simple, expressive & portable programming language for efficient scripting
http://arturo-lang.io
MIT License
673 stars 29 forks source link

[Comparison\between?] deprecate the support for some types #1606

Open github-actions[bot] opened 2 months ago

github-actions[bot] commented 2 months ago

[Comparison\between?] deprecate the support for some types Right now this uses a generic algorithm and :any as entry, but does it even makes sense?

between? #[user: "Rick"] #[user: "Rick"] #[user: "Rick"]

The above code returns true, but what is the sense of seeing if a dictionary is between other two. I think this should be good to limit what types can be between other ones.

https://github.com/arturo-lang/arturo/blob/7f17d55ea05563a979e16407763df4bbe4c84f8c/src/library/Comparison.nim#L72

    #----------------------------

    # TODO(Comparison\between?): deprecate the support for some types
    # Right now this uses a generic algorithm and :any as entry, but does it even makes sense?
    #
    # ```art
    # between? #[user: "Rick"] #[user: "Rick"] #[user: "Rick"]
    # ``` 
    #
    # The above code returns true, but what is the sense of seeing if a dictionary is between other two.
    # I think this should be good to limit what types can be between other ones.
    # labels: library, open-discussion
    builtin "between?",
        alias       = thickarrowboth, 
        op          = opNop,
ew file mode 100644
ndex 0000000000..f4993bc330
++ b/tests/unitt/commons/functions.art

48a76b70471607395e0c6829acecf8b6ddc61e8d