Skip to content

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

@tigercoding56

Description

@tigercoding56

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions