Type | Wish | Status | submitted | Date | 23-Aug-2014 02:04 |
---|---|---|---|---|---|
Version | r3 master | Category | Parse | Submitted by | abolka |
Platform | All | Severity | minor | Priority | normal |
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 to | n/a | Fixed in | - | Last Update | 23-Aug-2014 02:07 |
---|
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 | - |