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

replace indentation error when declaring function with proc example(): #555

Open
tigercoding56 opened this issue Oct 13, 2024 · 0 comments

Comments

@tigercoding56
Copy link

Abstract

i used to write proc someproc(): (as in python's def func():) instead of proc someproc()=
it gives a indentation error which could be confusing for newby's
maybe replace it with error: due to the use of :(type) to declare return type use = instead of : to declare functions or something along that line

Motivation

it would help new nim programmers (nimpro's?) who came here from python

Description

it does not solve all confusing error messages

Code Examples

No response

Backwards Compatibility

No response

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

No branches or pull requests

1 participant