webyrd / Barliman

Prototype smart text editor
MIT License
1.04k stars 30 forks source link

Is this expected behavior? #27

Closed NightMachinery closed 6 years ago

NightMachinery commented 6 years ago

image

image

gregr commented 6 years ago

@NightMachinary , yes, unfortunately there's a large amount of Scheme that we don't support yet, including addition. We do want to support this eventually, but don't have a time frame for when that will be.

For now, if you want to perform synthesis involving arithmetic, you'll have to encode numbers as list structures of some kind. Peano numerals work well enough to handle simple cases. Binary representations may be more efficient for normal execution, but I wouldn't be surprised if it made synthesis more difficult in some cases.