REBOL3 tracker
  0.9.12 beta
Ticket #0002165 User: anonymous

Project:

Previous Next
rss
TypeWish Statussubmitted Date23-Aug-2014 02:04
Versionr3 master CategoryParse Submitted byabolka
PlatformAll Severityminor Prioritynormal

Summary Make PARSE return the input on success
Description Originally reported by @HostileFork at https://github.com/red/red/issues/903: "I suspect it would be more valuable [..] if on success, PARSE would by default return its input instead of TRUE/FALSE on success...and NONE on failure."
Example code
;; Current behaviour:
>> parse http://www.rebol.com ["http" opt "s" "://www.rebol.com"]
== true

;; Suggested behaviour:
>> parse http://www.rebol.com ["http" opt "s" "://www.rebol.com"]
== http://www.rebol.com

Assigned ton/a Fixed in- Last Update23-Aug-2014 02:07


Comments

Date User Field Action Change
23-Aug-2014 02:07 abolka Description Modified -
23-Aug-2014 02:07 abolka Code Modified -
23-Aug-2014 02:04 abolka Ticket Added -