News for hackers. Stuff that matters.
Re:Bio – experimental Lisp dialect, written in Zig by gleenn on Sunday July 14, 2024 @12:07PM (#40961701)
I see they use they use the actual lambda character "λ" to create functions which is both cool and also probably makes grepping for functions a PITA. It does look pretty but I would have to search the web or write down the random keystroke to generate that symbol.

An example usage:

(filter (quicksort '(5 40 1 -3 2) <) (λ (x) (>= x 0)))

Re:Bio – experimental Lisp dialect, written in Zig by codr7 on Sunday July 14, 2024 @12:55PM (#40961956)
Functions deserve their own symbol in Lisp.

Though I prefer ^ since it’s easier to type.

https://github.com/codr7/sharpl

Re:Bio – experimental Lisp dialect, written in Zig by satvikpendem on Sunday July 14, 2024 @01:12PM (#40962078)
Haskell uses \ which is nice, it's an ASCII character that looks like the right half of λ
Re:Bio – experimental Lisp dialect, written in Zig by darby_nine on Sunday July 14, 2024 @01:14PM (#40962087)
It's pretty common to wire \ to the lambda character in your editor. I think racket already allows this (if not as a replacement for lambda, an alternative syntax for it)
Re:Bio – experimental Lisp dialect, written in Zig by gylterud on Sunday July 14, 2024 @02:41PM (#40962538)
This is also what Agda does (though \ is synonymous).
Re:Bio – experimental Lisp dialect, written in Zig by brudgers on Sunday July 14, 2024 @02:50PM (#40962575)
You can use a λ in many common Rackets.
Re:Bio – experimental Lisp dialect, written in Zig by cryptocod3 on Thursday July 18, 2024 @11:13AM (#40996334)
The language supports both (λ is just an alias... which I might remove)

Replaced the example with lambda - appreciate the feedback!