comp.lang.ada
 help / color / mirror / Atom feed
From: "G.B." <bauhaus@futureapps.invalid>
Subject: Re: Mixing operators and dot notation
Date: Fri, 3 Jun 2016 16:45:16 +0200
Date: 2016-06-03T16:45:16+02:00	[thread overview]
Message-ID: <nis55s$h25$1@dont-email.me> (raw)
In-Reply-To: <niroh2$43q$1@dont-email.me>

On 03.06.16 13:09, Alejandro R. Mosteo wrote:
>
> SourceType.Generate_Data
>     .Op1 (FromXtoY.Transformer
>        (User_FuncX'Access)) -- User_FuncX returns Y
>     .Op2 (FromYtoZ.Transformer
>        (User_FuncY'Access)) -- User FuncY returns Z
>     .Endpoint (Z_Type.As_Z (Function'Access));

Seeing the syntax all the time---just the syntax, the
flow construction principles may deserve their own mode
of expression---in Javascript and Swift, I can't say
that it always seems so lovable: no names! No stops.
No context. Where does it start?  Burdensome, obfuscating.

In fact, this becomes a stretched, vertical APL.

Must I really buy a savvy folding editor just to find
the beginning of the chain without scrolling and backwards
scanning, reverting syntactical development in my head?

ML did something by emplying "and" for multiple such
points all relating to one start (the fun's name);
later languages have improved that somewhat by repeating
the name (even though this is referring to definitions,
not chains of calls, just for the picture).

A dialect of Eiffel by the maker of the lout formatting
software (sorry, don't remember the name) has turned MI
Eiffel "functional", every call producing another object
(no state change in objects).

So, if parentheses are to be avoided, and chaining is
an important principle of software construction, should it
not deserve some syntax of its own that reflects the
clarity of Ada's?

  parent reply	other threads:[~2016-06-03 14:45 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-06-02 21:38 Mixing operators and dot notation Alejandro R. Mosteo
2016-06-02 21:42 ` Alejandro R. Mosteo
2016-06-02 22:28 ` Robert A Duff
2016-06-02 23:26   ` Randy Brukardt
2016-06-03 11:09     ` Alejandro R. Mosteo
2016-06-03 12:19       ` Dmitry A. Kazakov
2016-06-03 14:45       ` G.B. [this message]
2016-06-03 17:31       ` Shark8
2016-06-03 20:41         ` Alejandro R. Mosteo
2016-06-06  8:14           ` briot.emmanuel
2016-06-06 13:51             ` Alejandro R. Mosteo
2016-06-07 11:24             ` Traits and iterators (was: Mixing operators and dot notation) Alejandro R. Mosteo
2016-06-08  7:31               ` briot.emmanuel
2016-06-08 11:18                 ` Traits and iterators Alejandro R. Mosteo
2016-06-06  8:10       ` Mixing operators and dot notation briot.emmanuel
2016-06-06 13:58         ` Alejandro R. Mosteo
2016-06-02 23:05 ` Jeffrey R. Carter
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox