3 ms·
knowing absolutely nothing about language design (and not many languages) other than occasional experiments in notepad... is there no language which attempts to
by krapp 13y ago
knowing absolutely nothing about language design (and not many languages) other than occasional experiments in notepad... is there no language which attempts to allow spaces, maybe with quotes, for better legibility?
like instead of
org.springframework.orm.jdo.TransactionAwarePersistenceManagerFactoryProxy
something like
org.'spring framework'.orm.jdo.'transaction aware persistence manager factory proxy'
or is that just a terrible idea?
- dxm 13y agoI personally think that's worse. The original declaration is easier to read and immediately recognisable as to what it is, I can see clearly that it's a namespace and a class. The second version would require me to think.
- dugmartin 13y agoIn PHP you can have non-alphanumeric variables like so: $org->{'spring framework'}->orm->jdo->{'transaction aware persistence manager factory proxy'} I'm not sure if you can do that with PHP namespaces though (and I'm too lazy to test this): use org\{'spring framework'}\orm\jdo\{'transaction aware persistence manager factory proxy'};