Re: New "cut" operator (was: Pike 8.0 RC1)
Martin Bähr <[email protected]>
| Newsgroups | gmane.comp.lang.pike.user |
|---|---|
| Message-ID | <[email protected]> |
Excerpts from 郭雪松's message of 2014-11-16 17:38:07 +0100:
> > string cutfront(string text, string divisor)
> If pike allows me write code like this:
> "<some thing>"->cutfront(">")
> I would think cutfront is ok. object oriented you know, the object was always come out first.
this is actually one of the things i miss in pike.
i'd love
string_value->function(args ...);
to be syntax sugar for:
String.function(string_value, args ...);
same for other types.
greetings, martin.
--
eKita - the online platform for your entire academic life
--
chief engineer eKita.co
pike programmer pike.lysator.liu.se caudium.net societyserver.org
BLUG secretary beijinglug.org
foresight developer foresightlinux.org realss.com
unix sysadmin
Martin Bähr working in china http://societyserver.org/mbaehr/