Opened 6 years ago

Closed 5 years ago

#277 closed defect (invalid)

Add another argument to load to be the evaluator

Reported by: cowan Owned by: alexshinn
Priority: major Milestone:
Component: WG1 - Core Keywords:
Cc:

Description (last modified by cowan)

By allowing an evaluation function to be passed to load, it becomes possible to use it for languages other than Scheme expressed in S-expression syntax. The function would receive an S-expression read from the file and the environment passed to load.

Change History (3)

comment:1 Changed 6 years ago by cowan

  • Description modified (diff)
  • Summary changed from Add another argument to eval and load to be the evaluator to Add another argument to load to be the evaluator

comment:2 Changed 6 years ago by cowan

Possibilities:

env-only: status quo, default environment is (interaction-environment)

eval-only: eliminate the environment argument in favor of a evaluator argument, a one-argument procedure (by default, (lambda (x) (eval x (interaction-environment))

env-first: environment argument followed by evaluator argument, same defaults

eval-first: evaluator argument followed by environment argument, same defaults

comment:3 Changed 5 years ago by alexshinn

  • Resolution set to invalid
  • Status changed from new to closed

This seems too random. There is no clear motivation or examples,
the status quo is widely implemented and sufficient for alternate
languages by specifying the env, and yet both solutions are
insufficient for languages with a different read syntax.

It's too late in the process to consider a change like this without
any precedent.

Note: See TracTickets for help on using tickets.