metaeducation / rebol-issues

6 stars 1 forks source link

Allow PATH! values to use refinements #1339

Closed rebolbot closed 8 years ago

rebolbot commented 14 years ago

Submitted by: henrikmk

File! allows the following:

f: %/c
f/system
== %/c/system

Path! does not:

f: 'a/b
f/c
== none (R2 returns an error here)

For building long paths with late evaluation, this would be very nice.

CC - Data [ Version: alpha 94 Type: Wish Platform: All Category: Datatype Reproduce: Always Fixed-in:none ]

rebolbot commented 14 years ago

Submitted by: BrianH

Path values use refinements already:

>> a: 'a/b
== a/b
>> a/1
== a

From the AltMe conversation I know you are trying to avoid the GET IN stuff, but that problem has already been solved with get-paths:

>> a: reduce [func [] [print "hello"]] c: 1
== 1
>> a/:c
hello
>> print mold :a/:c
make function! [[][print "hello"]]

I would have to recommend that this request be rejected. It interferes with the existing refinement behavior of paths, and the problem it attempts to solve has already been solved in a better way.