• kniebuiging@alien.topB
    link
    fedilink
    English
    arrow-up
    1
    ·
    1 year ago

    I won’t use it, its indentation is very off.

    take here: b is the body of the lambda function, but its indented as if its the body of the `letrec`

        (syntax (letrec ((f (lambda (a ...)
                  b
                  ...)))
    

    or here

    
      
    (define-syntax aif  
      (lambda (x)  
    (syntax-case x ()  
    ((\_ test then else)  
    (with-syntax ((it (datum->syntax x 'it)))  
    \#'(let ((it test))  
    (if it then else)))))))
    
    
  • jason-reddit-public@alien.topB
    link
    fedilink
    English
    arrow-up
    1
    ·
    1 year ago

    Quick feedback: you could show before and after for a small snippet in your README, maybe describe the algorithm being used, and mention what options are available to tweak the formatting (line length being the most interesting and overriding how certain “keywords” format probably being the next most useful).

    • raviqqe@alien.topOPB
      link
      fedilink
      English
      arrow-up
      1
      ·
      1 year ago

      I’m actually just using a formatter library and its readme describes the algorithm although it’s a very basic one. https://github.com/raviqqe/mfmt

      Currently, Schemat doesn’t have any options for configurations. It’s made after the philosophy of `gofmt` where you insert newlines with your “sense.”