Skip to content

str is missing join, upper and lower attributes #232

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

Open
2 of 3 tasks
dankox opened this issue Feb 12, 2024 · 2 comments
Open
2 of 3 tasks

str is missing join, upper and lower attributes #232

dankox opened this issue Feb 12, 2024 · 2 comments
Labels
good first issue Good for newcomers

Comments

@dankox
Copy link

dankox commented Feb 12, 2024

Builtin string type doesn't support join, upper and lower functions/attributes.

# fails with missing attribute
",".join(list) 
"hello world".upper()
"HELLo".lower()
  • str.join
  • str.upper
  • str.lower
@sbinet sbinet added the good first issue Good for newcomers label Feb 12, 2024
@sbinet
Copy link
Member

sbinet commented Feb 12, 2024

based on the changes from #188 it should be relatively easy to implement upper and lower (assuming the strings.ToUpper and strings.ToLower stdlib functions achieve what str.upper and str.lower are expected to do).

do you want to give it a try ?

@linrl3
Copy link

linrl3 commented May 1, 2025

Is the issue still open? I am trying to make a toy compiler and learning some projects. I want to give a try.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

3 participants