evincarofautumn / kitten

A statically typed concatenative systems programming language.
http://kittenlang.org/
Other
1.09k stars 39 forks source link

Int/float suggestions #28

Closed evincarofautumn closed 11 years ago

evincarofautumn commented 11 years ago
strager commented 11 years ago

I think the issue is now different. Kitten now supports overloading, meaning + and +. are the same operator. The compiler currently gives you error message such as:

1 2.0 +  // .ktn
...:7:(-1): type error: unable to resolve overload

I would guess a better message would be:

type error: unable to resolve overload of '+'
candidates are:
  Int Int -> Int
  Float Float -> Float
but stack contained: Float Int

Should this issue be closed or reworded?

evincarofautumn commented 11 years ago

Yup, the times have changed. Your suggestion was better.