Summary

crunch: multi-arg primitives could be simulated via syntax

Metadata

Description

By defining primitives as syntax that would normally accept optional or rest arguments (like "*"), multi-argument signatures could be made possible in most cases. So, for example, `(* a b c)` could expand into a (nested) call to some 2-arity multiplication primitive.

Changes and comments

[2017-08-25 15:34:09 UTC] sjamaan set difficulty to medium

[2017-08-25 15:34:09 UTC] sjamaan wrote:

A similar patch has just been submitted to -hackers for CHICKEN 5. I don't know if this can be used by crunch though.

[2017-08-27 15:17:23 UTC] felix wrote:

Crunch uses a different expander. I'm not even sure if crunch works as is in 5.0. Let's leave this for a moment.

[2017-11-22 17:08:53 UTC] felix changed status from new to closed

[2017-11-22 17:08:53 UTC] felix set resolution to duplicate