The manual seems wrong about this (0.4.5):

f(a=1,b=2) = a+2b
f(a::Int,b::Int) = a-2b
f() # -> 5
f(1,2) # -> -3

The manual says that both calls give -3. So who's wrong, the language or
the manual ?

-- 
ELS'16 registration open! http://www.european-lisp-symposium.org

Lisp, Jazz, Aïkido: http://www.didierverna.info

Reply via email to