Skip to content
Snippets Groups Projects
Commit 13df8fc2 authored by Stéphane Del Pino's avatar Stéphane Del Pino
Browse files

Discuss rapidly the pure function-like behavior of pugs functions

parent 8be5cd74
No related branches found
No related tags found
1 merge request!145git subrepo clone git@gitlab.com:OlMon/org-themes.git packages/org-themes
......@@ -2078,6 +2078,19 @@ or if ~(y1,...,ym)~ has already been defined in ~Y1*...*Ym~
*** Pure functions
In the ~pugs~ language, functions are *pure functions* in the sense that
arguments given to the function are *never* modified by the
functions. They act as operators.
#+BEGIN_note
Actually these functions are not strictly /pure functions/ in the
computer science context. The reason for that is that they can
eventually have side effects. A good example for that, is that it is
possible to modify the random seed used by the code the code. In that
case, the modified value is not a variable of the language itself but
the internal random seed itself.
#+END_note
*** TODO Implicit type conversion for parameters and returned values
*** TODO User-defined functions
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment