News for hackers. Stuff that matters.
Re:XL: An Extensible Programming Language by DonHopkins on Wednesday February 21, 2024 @10:01AM (#39454627)
What does "is is is" mean in this language?

Maybe it's a quine?

Can you define an "isn't" operator?

Re:XL: An Extensible Programming Language by c3d on Wednesday February 21, 2024 @11:25AM (#39455826)
Let's ask the interpreter / compiler:

  ./xl -nobuiltins -parse /tmp/glop.xl -style debug -show
  (infix is
   is
   is
  )
So what it sees is a definition of a name 'is' as itself.

Now, that name is very unlikely to be usable because `is` as an infix is so central to everything. As a matter of fact, it looks like even "is is 2" actually crashes the current implementation.

Oh well. I wonder what a sensible error message on this would be. Probably: "Bill Clinton denied to comment on the meaning of that statement".

Re:XL: An Extensible Programming Language by runlaszlorun on Thursday February 22, 2024 @12:28AM (#39463574)
> "Bill Clinton denied to comment on the meaning of that statement".

Oh man, that’d be hilarious.

I’ve been hacking around with my own sorta Forth/Postscript like attempt at a language that runs on WebAssembly and does graphics in the browser.

Odds are it’ll never see the light of day. But if it does, you’ve now triggered all kinds of ideas for ridiculous ideas for error messages. Like starting them of with ‘hey bruh…’ or trotting out good ol’ Mr Clippy from Microsoft.

Re:XL: An Extensible Programming Language by runlaszlorun on Wednesday February 21, 2024 @10:33AM (#39455037)
“is is is” would be called BillClintonLang, no?
Re:XL: An Extensible Programming Language by fuzztester on Wednesday February 21, 2024 @05:32PM (#39460550)
Or TrumpLang.

"It is what it is".

https://www.google.com/search?q=Trump+it+is+what+it+is

2nd hit onwards.

Re:XL: An Extensible Programming Language by runlaszlorun on Thursday February 22, 2024 @12:20AM (#39463525)
Oh man. I’d missed that Trumpism.