DEV Community

Discussion on: I Want Scalar Objects in PHP

Collapse
 
theodesp profile image
Theofanis Despoudis

The one and only answer to the original tweet I believe is to remove the dollar sign '$' it's hideous

Collapse
 
samuraiseoul profile image
Sophie The Lionhart

I don't hate the dollar sign per say but I agree it is pretty glaring. But I mean putting a different symbol or the word var or something in front of all the variables wouldn't be much better either. I'm curious about another idea you have for it though!

Collapse
 
ianfoulds profile image
Ian Foulds • Edited

How about prefixing with a strict type?
dev.to/mattsparks/i-want-scalar-ob...