News for hackers. Stuff that matters.
Re:GPT-4 Designed a Programming Language by UncleEntity on Thursday March 16, 2023 @03:30AM (#35179198)
> I like the use of the arrows in the function definitions though :) I've seen that somewhere before…

Python type hints probably.

I (ab)used them for good effect when I was fiddling around with the spark earley parser that used to be part of the python build system.

Re:GPT-4 Designed a Programming Language by dunefox on Thursday March 16, 2023 @04:01AM (#35179368)
Also haskell signatures, for example.
Re:GPT-4 Designed a Programming Language by amoss on Thursday March 16, 2023 @06:28AM (#35180165)
lol, of course. I hadn't realised it is so long since I wrote any Haskell...
Re:GPT-4 Designed a Programming Language by fho on Thursday March 16, 2023 @04:49AM (#35179637)
It actually comes from math notation and was used in ML-type languages long before python.