riolet / rix

Rix language combines the power of C language and the convenience of a high level language
GNU General Public License v3.0
729 stars 27 forks source link

void functions #17

Closed JoePelz closed 9 years ago

JoePelz commented 9 years ago

void functions that return nothing. Are they a part of the language? Assuming functions can be non-pure (i.e. have side effects) void functions have a place and should be possible to write.

possibilities:

:myPrint Integer i
  print i

Void: myPrint Integer i
  print i

Null: myPrint Integer i
  print i

Presumably the return statement isn't necessary because blocks are marked by indentation instead of braces.

JoePelz commented 9 years ago

Resolved. Decided upon:

:myPrint Integer i
  print i
JoePelz commented 9 years ago

Reopening. This needs the actual fix to allow void functions before closing it.

JoePelz commented 9 years ago

Closing. Void functions work now! Fixed in 35eeff36aaa309a7573c882eaa836d91f6963abe and 253495e95b45db013b7a48d24bc84e73be012de0