nim-lang / RFCs

A repository for your Nim proposals.
136 stars 23 forks source link

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

Open tigercoding56 opened 1 month ago

tigercoding56 commented 1 month ago

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