Re: [Pharo-dev] Smalltalk = strongly typed

2013-08-05 Thread Igor Stasenko
On 3 August 2013 20:53, kilon wrote: > btc wrote >> btc@ > >> wrote: >> >> Kilon, I agree with most of you writeup, except that I think Smalltalk >> has types - except the types are not associated with variables, rather >> they are associated with objects. This aligns with Igor's comment "in >>

Re: [Pharo-dev] Smalltalk = strongly typed

2013-08-03 Thread Hernán Morales Durand
Hi Ben, Even if you adopt a type system or definition as part of Smalltalk, it is not coherent nor intuitive with the system usage. Types are not identifiable in Smalltalk, they belong to other systems semantics (both formal and informal) and probably scientific corpus. Because of that, you ar

Re: [Pharo-dev] Smalltalk = strongly typed

2013-08-03 Thread kilon
btc wrote > btc@ > wrote: > > Kilon, I agree with most of you writeup, except that I think Smalltalk > has types - except the types are not associated with variables, rather > they are associated with objects. This aligns with Igor's comment "in > smalltalk, assignment is not copying value,

Re: [Pharo-dev] Smalltalk = strongly typed

2013-08-03 Thread btc
b...@openinworld.com wrote: greetings all, I'm in the final weeks of writing up my Masters dissertation and seeking some scholarly references to Smalltalk being "Strongly Typed." I my review of Smalltalk I was surprised to find that [1] describes Smalltalk as Strongly Typed, since Smalltalk

Re: [Pharo-dev] Smalltalk = strongly typed

2013-08-03 Thread Germán Leiva
The term "strongly typed" is ambiguos and this thread is the living proof of that. In the introduction of http://lucacardelli.name/Papers/OnUnderstanding.A4.pdf Luca Cardelli talks about untyped universes and later about Smalltalk. For me Smalltalk is a dynamically typed language with implicit ty

Re: [Pharo-dev] Smalltalk = strongly typed

2013-08-03 Thread Juan Vuletich (mail lists)
BTW, I especially like the idea that Smalltalk is Multityped, as an object can respond to several protocols/interfaces/type specs. So true! Quoting "Carla F. Griggio" : > Well, I've always defined a type as the a set of values and the operations > you can do with them. For example, the set o

Re: [Pharo-dev] Smalltalk = strongly typed

2013-08-03 Thread Juan Vuletich (mail lists)
I fully agree with you. Just a detail. "strongly typed" or "weakly typed" is not ambiguous. Weakly typed means that the system can not guarantee that the types are known and behavior is consistent with them. The main example is C, where a pointer can point to anything, and often there is no ty

Re: [Pharo-dev] Smalltalk = strongly typed

2013-08-03 Thread kilon
" Smalltalk has types: a set of objects and the messages they understand" Nope thats not what a type is. A type is a category of data. Its that simple. Your set of objects and the messages they understand can do thousands of things. Emulating types is one of those things. Also what happens in

Re: [Pharo-dev] Smalltalk = strongly typed

2013-08-02 Thread Carla F. Griggio
Well, I've always defined a type as the a set of values and the operations you can do with them. For example, the set of values { 1, 2, 3, 4, ... } and the operations { + , - , * , ... } would be the type Integer. With that in mind, *Smalltalk has types: a set of objects and the messages they under

Re: [Pharo-dev] Smalltalk = strongly typed

2013-08-02 Thread Hernán Morales Durand
That is correct, there are no types in Smalltalk. Cheers, Hernán El 02/08/2013 15:55, Igor Stasenko escribió: I wonder if 'types' can be applied to smalltalk at all. Saying it is 'unityped' language (since everything is an object) is same as saying it has no types. Because where you need types

Re: [Pharo-dev] Smalltalk = strongly typed

2013-08-02 Thread Alain Plantec
Hi Ben, Thanks for the references, I've also found this post interesting: http://blogs.perl.org/users/ovid/2010/08/what-to-know-before-debating-type-systems.html Cheers Alain On 2 août 2013, at 06:03, b...@openinworld.com wrote: > greetings all, > > I'm in the final weeks of writing up my Maste

Re: [Pharo-dev] Smalltalk = strongly typed

2013-08-02 Thread Enrico Schwass
Hello If people ask me about Smalltalk I soon refer to the term duck typing. It perfectly fits. Enno On 02.08.2013, at 20:55, Igor Stasenko wrote: > I wonder if 'types' can be applied to smalltalk at all. > Saying it is 'unityped' language (since everything is an object) is > same as saying

Re: [Pharo-dev] Smalltalk = strongly typed

2013-08-02 Thread Igor Stasenko
I wonder if 'types' can be applied to smalltalk at all. Saying it is 'unityped' language (since everything is an object) is same as saying it has no types. Because where you need types? When you want to manipulate with data, but in smalltalk all data manipulation semantics is provided and implemen

Re: [Pharo-dev] Smalltalk = strongly typed

2013-08-02 Thread kilon
I dont see the reason for the confusion. Static typed language is a language that defines the type of the variable at the creating of the variable. Strongly typed language is a language that wont automatically convert the type of a variable if the correct type is not used. Dynamic typed langu

Re: [Pharo-dev] Smalltalk = strongly typed

2013-08-02 Thread Camille Teruel
On 2 août 2013, at 15:47, Esteban Lorenzano wrote: > > On Aug 2, 2013, at 3:39 PM, Camille Teruel wrote: > >> Just a citation: >> >> “I spent a few weeks ... trying to sort out the terminology of ‘strongly >> typed’, >> ‘statically typed’, ‘safe’, etc., and found it amazingly difficult ...

Re: [Pharo-dev] Smalltalk = strongly typed

2013-08-02 Thread Esteban Lorenzano
On Aug 2, 2013, at 3:39 PM, Camille Teruel wrote: > Just a citation: > > “I spent a few weeks ... trying to sort out the terminology of ‘strongly > typed’, > ‘statically typed’, ‘safe’, etc., and found it amazingly difficult ... The > usage of these > terms is so various as to render them a

Re: [Pharo-dev] Smalltalk = strongly typed

2013-08-02 Thread Igor Stasenko
On 2 August 2013 15:27, Milan Mimica wrote: > On 2 August 2013 06:03, wrote: >> >> >> "A strongly typed language prevents any operation on the wrong type of >> data. In weakly typed languages there are ways to escape this restriction: >> type conversions" >> >> meaning that getting a MNU is a for

Re: [Pharo-dev] Smalltalk = strongly typed

2013-08-02 Thread Camille Teruel
Just a citation: “I spent a few weeks ... trying to sort out the terminology of ‘strongly typed’, ‘statically typed’, ‘safe’, etc., and found it amazingly difficult ... The usage of these terms is so various as to render them almost useless.” -- Benjamin C. Pierce If you use one of these term

Re: [Pharo-dev] Smalltalk = strongly typed

2013-08-02 Thread Milan Mimica
On 2 August 2013 06:03, wrote: > > "A strongly typed language *prevents* any operation on the wrong type of > data. In weakly typed languages there are ways to escape this restriction: > type conversions" > > meaning that getting a MNU is a form of Strong Typing since you can't make > a Smalltalk

Re: [Pharo-dev] Smalltalk = strongly typed

2013-08-02 Thread Igor Stasenko
On 2 August 2013 06:03, wrote: > greetings all, > > I'm in the final weeks of writing up my Masters dissertation and seeking > some scholarly references to Smalltalk being "Strongly Typed." > > I my review of Smalltalk I was surprised to find that [1] describes > Smalltalk as Strongly Typed, sinc

[Pharo-dev] Smalltalk = strongly typed

2013-08-01 Thread btc
greetings all, I'm in the final weeks of writing up my Masters dissertation and seeking some scholarly references to Smalltalk being "Strongly Typed." I my review of Smalltalk I was surprised to find that [1] describes Smalltalk as Strongly Typed, since Smalltalk is sometimes denigrated as b