Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon.

Pages: 1-

-> to .

Name: Anonymous 2009-08-22 18:46

I like to use Object Oriented PHP, but absolutely abhor the use of " -> " instead of " . "

Is there anything I can do to make it recognize "."?

Like: this.something

Name: Anonymous 2009-08-22 18:55

. is used to concate strings, so no.

Name: Anonymous 2009-08-22 18:56

Just use namespaces instead. You're not doing real OOP anyway.

Name: Anonymous 2009-08-22 19:37

You could model all dereferencing using string concatenation with ., and then parse them into -> later

Name: Anonymous 2009-08-22 19:58

(->) is an ADT
(.) is a HOF
What about them?

Name: Anonymous 2009-08-22 20:39

Rewrite the parser

Name: Anonymous 2009-08-22 20:56

Don't use PHP, problem solved.

Name: Anonymous 2009-08-22 21:21

>>6
One would think this would be as symbol as swapping round the lexing strings for CONCAT_SYMBOL and INDIRECT_SYMBOL (or whatever they are) but you obviously haven't seen the parser for PHP.

Name: Anonymous 2009-08-23 11:56

HOF HOF

Name: Anonymous 2009-08-23 12:00

>>8
It's open-source, so stop bitching and fix it.

Name: Anonymous 2009-08-23 12:08

>>1

thats what PHP developers are actually concerned about.

Name: Anonymous 2009-08-23 13:47

>>10
It's open-source, so no matter what you fix the developers will ignore you.

Name: Anonymous 2009-08-23 14:29

>>12
The point is that you fix it for personal use, not that you try to get the main branch fixed.

Name: Anonymous 2009-08-23 16:23

>>13
It's not a fix to begin with, just OP being bitchy.
Although in reality, PHP is unfixable.

Name: Anonymous 2009-08-23 17:12

reader macro

Name: Anonymous 2009-08-23 19:06

>>15
You're forgetting that most `popular' programming languages haven't heard of such simple, yet very useful extensibility techniques.

Name: Anonymous 2009-08-23 21:51

>>1
switch to python, perl, lua, ruby, clojure, or pretty much anything. even ruby on rails is better than php.

Name: Anonymous 2009-08-24 16:49

switch to Haskell

Name: Anonymous 2010-10-26 23:18

Name: Anonymous 2011-01-26 13:35

s
 a
g
e

Name: Anonymous 2011-01-31 20:44

<-- check em dubz

Don't change these.
Name: Email:
Entire Thread Thread List