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

[Feature Request] Add f-string support #86

Closed
Kratosix opened this issue May 10, 2023 · 2 comments
Closed

[Feature Request] Add f-string support #86

Kratosix opened this issue May 10, 2023 · 2 comments
Labels
enhancement New feature or request mojo-repo Tag all issues with this label

Comments

@Kratosix
Copy link

I seem to not use f-strings in Mojo, for example Here's my code
let g = 54 print(f'{g}')

And I seem to be getting this error
error: Expression [6]:17:12: expected ')' in call argument list
print(f'{g}')
^

Is there anyway to fix this issue, thanks for your patience.

@Kratosix Kratosix added the bug Something isn't working label May 10, 2023
@Kratosix Kratosix changed the title [BUG] (I am not using f-strings even though Mojo supports python) I am not using f-strings even though Mojo supports python May 10, 2023
@Kratosix Kratosix changed the title I am not using f-strings even though Mojo supports python [BUG](I am not using f-strings even though Mojo supports python) May 10, 2023
@binarycache
Copy link

binarycache commented May 10, 2023

None of the python formatting works.

Neither .format nor %

I think this is linked to #9 (comment) string concatenation bug too.

@Kratosix
Copy link
Author

Ok that's really cool, when will this be allowed to be used. THANKS

@Mogball Mogball changed the title [BUG](I am not using f-strings even though Mojo supports python) [Feature Request] Add f-string support May 11, 2023
@Mogball Mogball added enhancement New feature or request and removed bug Something isn't working labels May 11, 2023
@ematejska ematejska added the mojo-repo Tag all issues with this label label May 7, 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 mojo-repo Tag all issues with this label
Projects
None yet
Development

No branches or pull requests

4 participants