Re: Idea: Allow $(name ...) as an abbrevation of $(call name ....)

2019-06-13 Thread Tim Murphy
On Fri, 14 Jun 2019 at 03:17, Masahiro Yamada wrote: > On Fri, Jun 14, 2019 at 2:58 AM David A. Wheeler > wrote: > > > > On Thu, 13 Jun 2019 18:18:15 +0100, Tim Murphy > wrote: > > > builtin functions can check their arguments to some extent. > Interesting to > > > wonder if user defined ones c

Re: Idea: Allow $(name ...) as an abbrevation of $(call name ....)

2019-06-13 Thread Masahiro Yamada
On Fri, Jun 14, 2019 at 2:58 AM David A. Wheeler wrote: > > On Thu, 13 Jun 2019 18:18:15 +0100, Tim Murphy wrote: > > builtin functions can check their arguments to some extent. Interesting to > > wonder if user defined ones can. > > we don't even have $(equals) or a way to know the number of arg

Re: Idea: Allow $(name ...) as an abbrevation of $(call name ....)

2019-06-13 Thread Masahiro Yamada
On Fri, Jun 14, 2019 at 4:16 AM Tim Murphy wrote: > > builtin functions can check their arguments to some extent. Interesting to > wonder if user defined ones can. > we don't even have $(equals) or a way to know the number of arguments that > were supplied or any mathematical operations with whi

Re: Idea: Allow $(name ...) as an abbrevation of $(call name ....)

2019-06-13 Thread Tim Murphy
builtin functions can check their arguments to some extent. Interesting to wonder if user defined ones can. we don't even have $(equals) or a way to know the number of arguments that were supplied or any mathematical operations with which to compare. So when something is called wongly it charges on

Re: Idea: Allow $(name ...) as an abbrevation of $(call name ....)

2019-06-13 Thread David A. Wheeler
On Thu, 13 Jun 2019 18:18:15 +0100, Tim Murphy wrote: > builtin functions can check their arguments to some extent. Interesting to > wonder if user defined ones can. > we don't even have $(equals) or a way to know the number of arguments that > were supplied or any mathematical operations with whi

Re: Idea: Allow $(name ...) as an abbrevation of $(call name ....)

2019-06-11 Thread David A. Wheeler
On Tue, 11 Jun 2019 14:09:42 +0900, Masahiro Yamada wrote: > If we drop the compatibility like Python 3, > We could fix our regrets ... The Python3 transition was horrific, and is a textbook case of how to *not* handle a transition. It's not that Python3 is bad (I use it), but its transition was

Re: Idea: Allow $(name ...) as an abbrevation of $(call name ....)

2019-06-10 Thread Masahiro Yamada
On Mon, Jun 10, 2019 at 12:46 PM David A. Wheeler wrote: > > On Mon, 10 Jun 2019 11:56:04 +0900, Masahiro Yamada > wrote: > > It is a design. > > Sure, but we can add to it. > > > In summary, there is slight difference between > > a variable and a user-defined function. > > Omitting 'call' makes

Re: Idea: Allow $(name ...) as an abbrevation of $(call name ....)

2019-06-10 Thread David A. Wheeler
On Mon, 10 Jun 2019 22:46:23 +0100, Tim Murphy wrote: > If you can't make first-class functions that are the equal of $(filter) or > $(subst) or whatever, or indeed replace them, then it seems like a bit of a > fudge for the sake of 4 characters. You can make functions that do the work of $(filte

Re: Idea: Allow $(name ...) as an abbrevation of $(call name ....)

2019-06-10 Thread Tim Murphy
If you can't make first-class functions that are the equal of $(filter) or $(subst) or whatever, or indeed replace them, then it seems like a bit of a fudge for the sake of 4 characters. I think one could end up having huge discussions about this to a pretty limited benefit and miss spending the t

Re: Idea: Allow $(name ...) as an abbrevation of $(call name ....)

2019-06-10 Thread Masahiro Yamada
Hi. On Mon, Jun 10, 2019 at 10:55 AM Paul Smith wrote: > > On Sun, 2019-06-09 at 18:53 -0400, David A. Wheeler wrote: > > There's also no need for it. If "name" is followed by whitespace it *cannot* > > be a POSIX variable reference, because POSIX doesn't allow that. > > > > Solution: > > Just al

Re: Idea: Allow $(name ...) as an abbrevation of $(call name ....)

2019-06-09 Thread David A. Wheeler
On Mon, 10 Jun 2019 11:56:04 +0900, Masahiro Yamada wrote: > It is a design. Sure, but we can add to it. > In summary, there is slight difference between > a variable and a user-defined function. > Omitting 'call' makes obscure the difference between them. I don't think it obscures the differe

Re: Idea: Allow $(name ...) as an abbrevation of $(call name ....)

2019-06-09 Thread Paul Smith
On Sun, 2019-06-09 at 18:53 -0400, David A. Wheeler wrote: > There's also no need for it. If "name" is followed by whitespace it *cannot* > be a POSIX variable reference, because POSIX doesn't allow that. > > Solution: > Just allow $(name ...), where 1+ whitespace follows name, to be considered >