[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Is string always same as number? (the consistency of lua)
- From: Roberto Ierusalimschy <roberto@...>
- Date: Fri, 11 Feb 2011 10:17:51 -0200
> > As I know, strong types has another name: static type, they means the
> > variable instead of value has type: value has not type, but variable does.
> > i.e. the object/memory/space hold the corresponding value has type, but not
> > the value itself.
>
> Wrong. Strong typing means that, like in Ocaml, you cannot add
> integers to floating point numbers directly. Even in C, with its
> static type system, integers are silently promoted to floating point
> numbers in such a case.
Let us all follow Steve Donovan's advice and read "What To Know Before
Debating Type Systems" [1]. In particular:
Probably the most common way type systems are classified is "strong"
or "weak." This is unfortunate, since these words have nearly no
meaning at all.
I heartily agree.
[1] http://blog.steveklabnik.com/what-to-know-before-debating-type-systems-0
-- Roberto
- References:
- Re: Is string always same as number? (the consistency of lua), Miles Bader
- Re: Is string always same as number? (the consistency of lua), Dirk Laurie
- Re: Is string always same as number? (the consistency of lua), Axel Kittenberger
- Re: Is string always same as number? (the consistency of lua), steve donovan
- Re: Is string always same as number? (the consistency of lua), Axel Kittenberger
- Re: Is string always same as number? (the consistency of lua), steve donovan
- Re: Is string always same as number? (the consistency of lua), Axel Kittenberger
- Re: Is string always same as number? (the consistency of lua), Philippe Lhoste
- Re: Is string always same as number? (the consistency of lua), Xavier Wang
- Re: Is string always same as number? (the consistency of lua), Alex Queiroz