-> to .
1
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
2
Name:
Anonymous
2009-08-22 18:55
. is used to concate strings, so no.
3
Name:
Anonymous
2009-08-22 18:56
Just use namespaces instead. You're not doing real OOP anyway.
4
Name:
Anonymous
2009-08-22 19:37
You could model all dereferencing using string concatenation with ., and then parse them into -> later
5
Name:
Anonymous
2009-08-22 19:58
(->) is an ADT
(.) is a HOF
What about them?
6
Name:
Anonymous
2009-08-22 20:39
Rewrite the parser
7
Name:
Anonymous
2009-08-22 20:56
Don't use PHP, problem solved.
8
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.
9
Name:
Anonymous
2009-08-23 11:56
HOF HOF
10
Name:
Anonymous
2009-08-23 12:00
>>8
It's open-source, so stop bitching and fix it.
11
Name:
Anonymous
2009-08-23 12:08
>>1
thats what PHP developers are actually concerned about.
12
Name:
Anonymous
2009-08-23 13:47
>>10
It's open-source, so no matter what you fix the developers will ignore you.
13
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.
14
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.
15
Name:
Anonymous
2009-08-23 17:12
reader macro
16
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.
17
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.
18
Name:
Anonymous
2009-08-24 16:49
switch to Haskell
19
Name:
Anonymous
2010-10-26 23:18