RFCs icon indicating copy to clipboard operation
RFCs copied to clipboard

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

Open tigercoding56 opened this issue 1 year ago • 0 comments

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

tigercoding56 avatar Oct 13 '24 18:10 tigercoding56