Summary
crunch: multi-arg primitives could be simulated via syntax
Metadata
- Id: d659700cf37d342635cc307160346a3c31f32d87
- Trac id: 957
- Type: enhancement
- Reporter: felix
- Owner: felix
- Cc:
- Status: closed
- Component: extensions
- Estimated difficulty: medium
- Resolution: duplicate
- Priority: minor
- Milestone: someday
- Version: 4.8.x
- Changetime: 2017-11-22 17:08:53 UTC
- Created: 2012-12-06 21:46:07 UTC
- Keywords: crunch
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.