9front - general discussion about 9front
 help / color / mirror / Atom feed
* [9front] Re: commit 2f8a59f4b5bfe028c022855acc19666d69eed909
@ 2021-07-09  7:48 Anthony Martin
  2021-07-09 14:21 ` ori
                   ` (2 more replies)
  0 siblings, 3 replies; 13+ messages in thread
From: Anthony Martin @ 2021-07-09  7:48 UTC (permalink / raw)
  To: 9front

> rc: add subshell-function syntax
>
> fn foo @{bar} is now equivalent to
> fn foo {@{bar}}. As a side effect,
> this disallows creating functions
> named after keywords without first
> quoting them.

Respectfully, this is just wrong. @ is a
unary operator. Repurposing it to define
a new special kind of function is a bit
much.

What does this buy you over being explicit
at the call site?

	fn foo { bar }

	@foo

One color of function is enough. What's
next?

	fn foo !{ bar }

to mean that foo always negates the exit
status of its body?

The new quoting requirement for functions
named after keywords seems fine, on the
other hand. But is it worth the backwards
incompatibility?

Thanks,
  Anthony

^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2021-09-01 19:24 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-07-09  7:48 [9front] Re: commit 2f8a59f4b5bfe028c022855acc19666d69eed909 Anthony Martin
2021-07-09 14:21 ` ori
2021-07-09 14:37 ` Stanley Lieber
2021-07-09 14:56   ` ori
2021-07-09 15:01   ` ori
2021-07-09 15:10     ` Stanley Lieber
2021-07-09 19:43       ` hiro
2021-07-09 20:44         ` hiro
2021-07-09 20:50           ` Stanley Lieber
2021-07-10  7:25             ` hiro
2021-07-10 14:16               ` Stanley Lieber
2021-08-27 15:07 ` ori
2021-09-01 19:16   ` Noam Preil

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).