help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: (*) -> 1


From: Michael Heerdegen
Subject: Re: (*) -> 1
Date: Tue, 17 Jan 2023 22:12:31 +0100
User-agent: Gnus/5.13 (Gnus v5.13)

Óscar Fuentes <ofv@wanadoo.es> writes:

> In other programming languages an expression such as "+ 2" would yield a
> partially applied function:
>
> let f = + 2
> f 5
> -> 7

The "dual" problem can also exist in this interpretation of notation,
though:

Would a partial application of `*' to no arguments result in a function
multiplying the product of the arguments (with 1), or would it result in
a function raising an error?  What would this function applied to no
arguments return?

What would the partial application of `-' to a number return when
applied to no arguments?  Etc.

Michael.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]