koka-lang / koka

Koka language compiler and interpreter
http://koka-lang.org
Other
3.16k stars 153 forks source link

doc out of sync with behaviour #289

Open szabi opened 1 year ago

szabi commented 1 year ago

(reported with version 2.4.0)

The interactive help :? gives:

:d[efines]  [identifier]  show interactively defined values

However, that command does not accept an optional argument for identifier:

> val x = 1 * 2
check  : interactive
x : int

> :d x
error in command: (line 1, column 4):
unexpected 'x'
expecting end of input
invalid command.
(type ":?" for help on commands)