[HN Gopher] Bio - Experimental Lisp dialect, written in Zig
       ___________________________________________________________________
        
       Bio - Experimental Lisp dialect, written in Zig
        
       Author : montyanderson
       Score  : 72 points
       Date   : 2024-07-13 22:11 UTC (1 days ago)
        
 (HTM) web link (github.com)
 (TXT) w3m dump (github.com)
        
       | tmtvl wrote:
       | Putting closing parentheses on their own lines is extremely
       | cursed.
       | 
       | I used to like Lisp-1s when I used Scheme, but having used Common
       | Lisp for a while I've come to appreciate Lisp-2s, if only for
       | silly things like...                 (defun foo (list)
       | (declare (type List list))         (assert (> (length list) 1))
       | (list (second list)               (first list)))
       | 
       | Everything else aside it seems like a nice finger exercise for
       | learning Zig.
        
       | 1hackaday wrote:
       | Very interesting. Would be useful to know how this compares to
       | other Lisps and what could be some use cases.
        
       | gleenn wrote:
       | I see they use they use the actual lambda character "l" 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) <) (l (x) (>= x 0)))
        
         | codr7 wrote:
         | Functions deserve their own symbol in Lisp.
         | 
         | Though I prefer ^ since it's easier to type.
         | 
         | https://github.com/codr7/sharpl
        
         | satvikpendem wrote:
         | Haskell uses \ which is nice, it's an ASCII character that
         | looks like the right half of l
        
         | darby_nine wrote:
         | 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)
        
         | gylterud wrote:
         | This is also what Agda does (though \ is synonymous).
        
         | brudgers wrote:
         | You can use a l in many common Rackets.
        
       | revskill wrote:
       | Need a dialect without using bracket.
        
         | rscho wrote:
         | People complaining about parens/brackets in lisps have never
         | really used structural editing. Change my mind!
        
           | wavemode wrote:
           | Parentheses in lisp are a lot like significant indentation
           | (Python, Haskell, etc), in that people tend to complain about
           | it "from afar". It is only once they start actually using the
           | language to develop something nontrivial, that they realize
           | that you quickly stop noticing the syntax entirely.
        
             | frou_dh wrote:
             | I basically agree with you, however thought the following
             | was an interesting idea about it perhaps not always being
             | that simple:
             | 
             | https://news.ycombinator.com/item?id=33166116
        
             | cageface wrote:
             | After 20 years of using python I still think significant
             | whitespace is a flaw.
             | 
             | It saves a little bit of typing in exchange for a lot of
             | ambiguity.
        
               | xigoi wrote:
               | There is no ambiguity with significant whitespace.
        
         | Zambyte wrote:
         | There is this: https://srfi.schemers.org/srfi-119/srfi-119.html
        
           | apgwoz wrote:
           | Everyone forgets about Dylan. (https://en.wikipedia.org/wiki/
           | Dylan_(programming_language)?w...)
        
         | zelphirkalt wrote:
         | Brackets? That's easy! Just use parentheses instead! I guess
         | you mean parentheses. Perhaps I am unaware of some meaning of
         | brackets, that also describes parentheses, but afaik
         | parentheses are different from brackets.
        
           | dasyatidprime wrote:
           | UK English mostly treats unadorned "bracket" as referring to
           | (), in fact, as opposed to US English which more often treats
           | it as referring to [].
        
       ___________________________________________________________________
       (page generated 2024-07-14 23:02 UTC)