soma-prototype icon indicating copy to clipboard operation
soma-prototype copied to clipboard

Blocks should allow partial application

Open mjstahl opened this issue 11 years ago • 1 comments

Currently if a lookup fails it will return Nil as the result. While in a block this should not be the case. This is how a failed lookup currently evaluates:

>>> {| x. y | x + y } value: 1
=== Nil

It should evaluate as follows:

>>> {| x. y | x + y } value: 1
=== Block

Where Block contains the expression.

{| y | 1 + y }

mjstahl avatar Apr 20 '13 18:04 mjstahl

This was changed from bug to feature because this is an implementation of partial application for blocks.

mjstahl avatar Aug 19 '14 16:08 mjstahl