Zain Raza (he/him)
Zain Raza (he/him)
MModular
Created by Zain Raza (he/him) on 12/31/2023 in #questions
Are Type Hints Still Possible in Mojo?
Thanks @Melody Daniel !
5 replies
MModular
Created by osvr_2 on 12/31/2023 in #questions
`The Mojo:fire: development environment was not found. If the Mojo SDK is installed, please set the
It sounds like you tried to re-install the Mojo SDK a second time. But I believe the error is asking you to locate the .modular directory in whatever environment that VS Code is running in. Have you been able to locate that yet?
19 replies
MModular
Created by Zain Raza (he/him) on 12/31/2023 in #questions
Are Type Hints Still Possible in Mojo?
OK, makes sense. What sparked my question is I was wondering how to refactor an existing Python codebase to Mojo. E.g., if my team is currently maintaining a Python codebase, where all the functions use type hints (from typing or our own classes) - does this mean we need to get rid of all the type hints that use typing (e.g., typing.List), if we were to decide to move to Mojo at first, because they wouldn't be recognized as types?
5 replies