News for hackers. Stuff that matters.
Re:Unsure if I understand TransactionAwarePersistenceManager... by krapp on Friday June 28, 2013 @07:29PM (#5960868)
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?
Re:Unsure if I understand TransactionAwarePersistenceManager... by dxm on Friday June 28, 2013 @07:50PM (#5960938)
I 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.
Re:Unsure if I understand TransactionAwarePersistenceManager... by dugmartin on Friday June 28, 2013 @08:59PM (#5961125)
In 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'};