Re:Zig, the Small Language
by 1980phipsi on Wednesday September 07, 2022 @01:36PM
(#32753597)
What about something like R's custom infix operators? R has %*% for matrix multiplication (and a few other built-in ones), but you can define your own %op%. It lets users know that potentially "here be dragons".
[ Parent
| on HN ]
Re:Zig, the Small Language
by WalterBright on Wednesday September 07, 2022 @01:47PM
(#32753760)
That has come up a few times. Frankly, %*% looks even worse. Using Unicode sounds like a good idea, until one discovers that the source code is not parseable without semantic analysis.