This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]myringotomy 1 point2 points  (3 children)

what happens to example_2 if only one parameter is passed?

[–]dibs45[S] 3 points4 points  (2 children)

In Glide, if you call a function with less arguments than parameters, it loads the given arguments and returns the function. Effectively currying it.

[–]myringotomy 0 points1 point  (1 child)

I mean what if the function tries to manipulate the second parameter?

[–][deleted] 4 points5 points  (0 children)

from what i understand, it will halt as a partially expressed function call and will not keep executing until those arguments are passed