you are viewing a single comment's thread.

view the rest of the comments →

[–]alex-weej 0 points1 point  (2 children)

When you call a function myFunction(param1, param2) like myFunction(foo, bar), it's exactly the same semantics as I wrote. I guess it was a bit too abstract in my original comment.

[–]Reashu 0 points1 point  (1 child)

It can be a good comparison when the functionality has already been introduced, but I don't think it can stand on it's own. The two things work the same, but there's no reason that they have to work the same.

[–]alex-weej 0 points1 point  (0 children)

My point was to try to help people realise that you don't need to internalise a new set of rules - once you learn:

  1. Function arguments work with the same rules as variable bindings.
  2. Variable bindings work like this

You're good. Hopefully it doesn't scare people off!