~evhan

New Zealand

https://foldling.org/

Feel free to contact me at my username at foldling.org, or visit my homepage for more info.

Trackers

~evhan/beaker

Last active 4 months ago

~evhan/dust

Last active 10 months ago

~evhan/chicken-sourcehut

Last active 1 year, 5 months ago

~evhan/git-fs

Last active 3 years ago

~evhan/sq

Last active 3 years ago

~evhan/chicken-git

Last active 3 years ago

~evhan/chick-8

Last active 3 years ago

~evhan/vim-scheme

Last active 4 years ago

~evhan/schematic

Last active 5 years ago

#6 Potential lint: if-begin into cond 4 months ago

on ~evhan/beaker

Fantastic!

As I was just thinking about it more, I have some other (basic) suggestions for lints as well if you're open to them:

(if condition
   #t
   #f)

The #t / #f literals in either branch of the if can probably be replaced by the condition itself, or some variant (e.g. (not condition)).

Also:

(if condition-1
   (if condition-2
     a
     b)
   c)

Nested ifs are probably best turned into a cond as well as an (and condition-1 condition-2):

(cond
   ((and condition-1 condition-2) a)
   (condition-1 b)
   (else c))

I suppose that experienced Schemers probably won't fall for these, but giving the linter good defaults for this sort of behaviour would be ideal :)

Thanks again for anything you can add here, I really appreciate the tool!

On 11/13/23 23:50, ~evhan wrote:

Hey Jeremy, thanks for the suggestion! That's not a bad idea, and it shouldn't be too complex to implement, either.

-- Jeremy Steward

#6 Potential lint: if-begin into cond 4 months ago

~evhan assigned ~evhan to #6 on ~evhan/beaker

#6 Potential lint: if-begin into cond 4 months ago

Comment by ~evhan on ~evhan/beaker

Hey Jeremy, thanks for the suggestion! That's not a bad idea, and it shouldn't be too complex to implement, either.

#5 Warnings emitted for expansions of imported macros 10 months ago

Comment by ~evhan on ~evhan/beaker

Fixed in 0.0.22.

REPORTED RESOLVED FIXED

#5 Warnings emitted for expansions of imported macros 10 months ago

Comment by ~evhan on ~evhan/beaker

The example provided was the following:

(module foo ()
  (import scheme)
  (import (chicken base)
          (chicken module)))

But that can be simplified to just an empty module form, i.e. (module ()). Both of these yield ("lint.scm:1" warning unnecessary-quote '#f).

#17 Add command to execute binary from specific version 10 months ago

Comment by ~evhan on ~evhan/dust

Added in version 0.0.16.

REPORTED RESOLVED IMPLEMENTED

#17 Add command to execute binary from specific version 1 year, 1 month ago

~evhan assigned ~evhan to #17 on ~evhan/dust

#18 Hard error when current-user-name cannot be determined 1 year, 1 month ago

~evhan assigned ~evhan to #18 on ~evhan/dust

#18 Hard error when current-user-name cannot be determined 1 year, 1 month ago

Ticket created by ~evhan on ~evhan/dust

Currently, CHICKEN's current-user-name procedure throws an error for users that are logged in to a Linux machine using an authentication mechanism such as LDAP or Active Directory.

This affects Dust, which uses that procedure to set up its directory tree. We need to work around this (and hopefully fix the hard error upstream).

#5 Warnings emitted for expansions of imported macros 1 year, 3 months ago

Ticket created by ~evhan on ~evhan/beaker

The linter currently reports issues resulting from macro expansions for syntax defined outside the current source file. This isn't very helpful, and ideally these wouldn't be emitted.

Reported by DeeEff in #chicken.