lua-users home
lua-l archive

Re: printf is a crappy language in a crappy language (was Re: [OT] Lua community and Go language)

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


On Mon, Aug 19, 2013 at 9:50 AM, Hao Wu <wuhao.wise@gmail.com> wrote:
> out to be a so-good solution because implicit type conversion could give you
> the "wrong" result
Which is why Lua is so refreshing - very few implicit type conversions
(1 + "2" is one of the few warts it does have, I think)
> ostream& foo(ostream &os, Obj* obj) {
> return os << obj; // instead of os << *obj
> }
C++ people have all kinds of anxieties about the compiler telling them
their problems. Test and see ;)

AltStyle によって変換されたページ (->オリジナル) /