Opened 11 years ago

Closed 6 years ago

#957 closed enhancement (duplicate)

crunch: multi-arg primitives could be simulated via syntax

Reported by: felix winkelmann Owned by: felix winkelmann
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 (3)

comment:1 Changed 7 years ago by sjamaan

Estimated difficulty: 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 7 years ago by felix winkelmann

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.

comment:3 Changed 6 years ago by felix winkelmann

Resolution: duplicate
Status: newclosed
Note: See TracTickets for help on using tickets.