lua-users home
lua-l archive

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


Philippe Lhoste <PhiLho@GMX.net> writes:
> - Unless you document very well your data structure (I guess you do),
> and document well the type of your parameters, etc., it can be hard to
> use the API.

Yup.

I tend to think of types in variable/field/parameter declarations (in
statically-typed languages) as _documentation_, which helps me
understand the program when reading other people's code, my old code,
etc.

The consistency-checking by the compiler is nice too of course... :]

-miles

-- 
春風の 穏やかな波 草を弾く
春草の 穏やかな波 風を惹く