arturo-lang / arturo

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

[Binary] more potential built-in function candidates? #1360

Open github-actions[bot] opened 8 months ago

github-actions[bot] commented 8 months ago

[Binary] more potential built-in function candidates? I'm thinking that we could probably add functions that allows to either clear or "set" a specific bit. Potentially, this could lead to the need of having another - e.g. :bitset - type. Is it worth the fuss?

https://github.com/arturo-lang/arturo/blob/411617a1906063cf0adfd3ac06804dc4b29403a0/src/library/Bitwise.nim#L28


#=======================================
# Definitions
#=======================================

# TODO(Binary) more potential built-in function candidates?
#  I'm thinking that we could probably add functions that allows to either clear or "set" a specific bit.
#  Potentially, this could lead to the need of having another - e.g. `:bitset` - type.
#  Is it worth the fuss?
#  labels: library, enhancement, open discussion

proc defineLibrary*() =

    #----------------------------
    # Functions
    #----------------------------

    builtin "and",
        alias       = unaliased, 

ed6f15de91b09c9135edbbe37ae565ed4ab66e9e

stale[bot] commented 3 weeks ago

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.