.
Things you don't generally find yourself thinking - Grin with cat attached
Previous Entry Next Entry
Things you don't generally find yourself thinking Nov. 17th, 2006 02:58 pm
"Damnit, I wish PHP had structs"...

From: duncanneko
Date: November 17th, 2006 - 03:17 pm (Link)
At least it's not 'unions'...
From: babysimon
Date: November 17th, 2006 - 03:41 pm (Link)
Or struts.
From: shadowdaddy
Date: November 17th, 2006 - 03:49 pm (Link)
You're so right! I didn't even realize I didn't think about it until you pointed out that I didn't think about it.
From: wechsler
Date: November 17th, 2006 - 04:14 pm (Link)
Bored much? ;)
From: topbit
Date: November 17th, 2006 - 05:12 pm (Link)
Et Tu?
From: flewellyn
Date: November 17th, 2006 - 04:15 pm (Link)
Generally, you could just use classes with public slots, and no methods, right?
From: wechsler
Date: November 17th, 2006 - 04:19 pm (Link)
There's no strong protection on accessing undefined members in PHP - it's all at the warning level, so this is (unfortunately) a weak solution.
From: flewellyn
Date: November 17th, 2006 - 04:47 pm (Link)
I guess I don't find myself wishing for structs much in any language...