Skip to content
New issue

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

Implement const (compile-time) functions #480

Open
33 of 56 tasks
mtshiba opened this issue Jan 29, 2024 · 0 comments
Open
33 of 56 tasks

Implement const (compile-time) functions #480

mtshiba opened this issue Jan 29, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@mtshiba
Copy link
Member

mtshiba commented Jan 29, 2024

Almost all of Python's standard functions are implemented in Erg, but we will re-register those of them that can also be executed at compile time as compile-time functions.

TODOs

  • abs
  • all
  • any
  • array
  • ascii
  • bin
  • bytes
  • bytesarray
  • chr
  • dict
  • enumerate
  • format
  • filter
  • frozenset
  • hash
  • int
  • iter
  • len
  • map
  • max
  • min
  • not
  • oct
  • ord
  • pow
  • range
  • repr
  • reversed
  • round
  • set
  • slice
  • sorted
  • str
  • sum
  • zip

Str methods

  • endswith
  • find
  • isalpha
  • isascii
  • isdecimal
  • join
  • replace
  • startswith

Array methods

  • __getitem__
  • union
  • shape
  • sum
  • prod
  • reversed

Dict methods

  • __getitem__
  • keys
  • values
  • items
  • concat
  • diff
  • as_record
@mtshiba mtshiba added the enhancement New feature or request label Jan 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant