Opened 5 years ago

Last modified 4 weeks ago

#957 new enhancement

crunch: multi-arg primitives could be simulated via syntax

Reported by: felix Owned by: felix
Priority: minor Milestone: someday
Component: extensions Version: 4.8.x
Keywords: crunch Cc:
Estimated difficulty: medium

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.

Change History (2)

comment:1 Changed 4 weeks ago by sjamaan

  • Estimated difficulty set to medium

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

comment:2 Changed 4 weeks ago by felix

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.

Note: See TracTickets for help on using tickets.