Re:Programming Languages That Blew My Mind (2023)
by abrudz on Monday November 04, 2024 @02:47AM
(#42039433)
Have you looked at dfns (https://en.wikipedia.org/wiki/Direct_function)? They allow you something very similar. Compare Dijkstra's GCL:
To an APL dfn with "guards":
As in GCL, if none of the guards hold true, the dfn (braces) will terminate without return value, and thus the code will abort with an error.
[ Parent
| on HN ]
Re:Programming Languages That Blew My Mind (2023)
by 082349872349872 on Monday November 04, 2024 @04:56AM
(#42040047)
thanks! very close, except for https://en.wikipedia.org/wiki/Direct_function#:~:text=guards...
(seems like a degenerate, empty, dfn also behaves differently?)
Re:Programming Languages That Blew My Mind (2023)
by 082349872349872 on Monday November 04, 2024 @08:07AM
(#42041167)
and, modulo the above, we could spell "do X ◻ Y od" as "{X ♢ Y}⍣≡"?