kevinlawler / kona

Open-source implementation of the K programming language
ISC License
1.36k stars 139 forks source link

3?5 #503

Closed tavmem closed 6 years ago

tavmem commented 6 years ago

While extending Kona past k3 may be an excellent idea, I am more interested in compatibility so that any script written for k2 or k3 will run in Kona, and vice-versa.

in k2.8

$ rlwrap -n ~/k2.8/k
K 2.8 2000-10-10 Copyright (C) 1993-2000 Kx Systems
Evaluation. Not for commercial use. 
\ for help. \\ to exit.
  3?5
domain error
3?5
 ^
>  

in Kona, these phrases redundantly match the capabilities of "_draw"

$ rlwrap -n ~/kona/k
K Console - Enter \ for help
  3?5
1 3 4
  -3?5
3 4 0