5 ms·
1. I had thought about that, but then I thought I'd go sort of like the Javascript route where everything can be modified (well, mostly, anyway) 2. Specialise
by niteshade 13y ago
1. I had thought about that, but then I thought I'd go sort of like the Javascript route where everything can be modified (well, mostly, anyway)
2. Specialise the types more how? Why would I want to hide the actual value - although I suppose I'd want to make sure that no external object can modify its value directly.
3. Like in the constructor? What about for Number, where you can pass it an int, double or float?
- MattBearman 13y agoIf you're interested, when I was working on a lib like this, each method had two versions, to* and as*, eg: $string->to_upper_case() # change the original $string->as_upper_case() # keeps original, and returns a new upper case string