Re: [PHP] Implementing strict types

2011-03-01 Thread Richard Quadling
On 1 March 2011 04:40, Paul McGarry wrote: > I am looking at implementing something roughly equivalent to strict > typing for a part of my code. > Has anybody else had a go at such a thing? > > I have some data types which I'm implementing as classes (base types > like "int" but also more specific

[PHP] Implementing strict types

2011-02-28 Thread Paul McGarry
I am looking at implementing something roughly equivalent to strict typing for a part of my code. Has anybody else had a go at such a thing? I have some data types which I'm implementing as classes (base types like "int" but also more specific types like "country") and I'd like to be able to use t