From ccc3271493019feb13ed1c96b035199e159fe863 Mon Sep 17 00:00:00 2001 From: Delyan Angelov Date: Thu, 23 Jun 2022 21:15:21 +0300 Subject: [PATCH] docs: restore the important sentence about the mutable args that have to be marked on call --- doc/docs.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/doc/docs.md b/doc/docs.md index 2ba697cb1f..741a4dc086 100644 --- a/doc/docs.md +++ b/doc/docs.md @@ -2280,7 +2280,8 @@ Note that the embedded struct arguments are not necessarily stored in the order ### Immutable function args by default -In V function arguments are immutable by default. +In V function arguments are immutable by default, and mutable args have to be +marked on call. Since there are also no globals, that means that the return values of the functions, are a function of their arguments only, and their evaluation has no side effects