Arc Forumnew | comments | leaders | submitlogin
1 point by Pauan 5187 days ago | link | parent

In my experience, it's usually the first argument, so I think having a :type would be useful, and in the cases where it isn't, you could fall back to :case (isa ...)

But of course, that's up to you.



2 points by akkartik 5176 days ago | link

Yeah after holding off for a week I decided it would be useful.

https://github.com/akkartik/wart/commit/9559f27eec3994d9779b...

Update 2 hours later: Turns out if isa can handle a list of types, so can :type.

https://github.com/akkartik/wart/commit/1a8400dfebb16bd154da...

-----