News for hackers. Stuff that matters.
Re:Noulith: A new programming language by the current Advent... by pentaphobe on Wednesday December 14, 2022 @08:10AM (#33982969)
Disclaimer: entirely off the cuff

Although the creator demonstrates this with `*` and `+` I could imagine this being useful within a set of higher level operators (functions)

eg. perhaps you want an argument of (infix) `map` to evaluate before `map` itself

Or more generally, you might have a bunch of scalar operators which you'd like to have higher precedence than collection operators which should act on the results

Re:Noulith: A new programming language by the current Advent... by JoachimS on Wednesday December 14, 2022 @09:10AM (#33983653)
Yes, but tht sounds like something you decide on once. Not, dynamically and more than once. More like "in this function call given these operands, I want '+' to be evaluated before '/'."

Or I'm probably missing something.

Re:Noulith: A new programming language by the current Advent... by pentaphobe on Thursday December 15, 2022 @10:12AM (#34000699)
Imagine you're writing a lot of one off solutions (say, for AOC) you may end up building a small set of helpful functions you compose together

Being able to customise how they compose (through precedence) lets you build a kind of DSL for your problem space

No idea how often that would be used - but I can imagine hobby scenarios