On Thu, Aug 28, 2014 at 12:52 AM, Björn Lindqvist <bjou...@gmail.com> wrote:
> I'm not following you. Can't you already do this?
I think he's talking more about interactive development and convenience
than standalone app development.

2014-08-27 22:52 GMT+02:00 Benjamin Pollack <benja...@bitquabit.com>:
> What would be great is to say, “Treat
> /path/to/whatever as resource:whatever”.
>From the docs:
http://docs.factorcode.org/content/article-io.pathnames.special.html
"If a pathname begins with resource:, it is resolved relative to the
directory containing the current image (see image)."

The current definition of "resource:" is really simple, I'm not sure
extending it is a good idea.
Not sure if adding another syntax word (for example "VOCAB-ROOT: foo" which
looks in vocab-roots for one ending with "foo") is really useful..

For interactive developpement, maybe just "vocab-roots get" then copy/paste
or right-click->"push" or just "nth" if you know the index you want.
Or (the ultimate lazy solution), add to your .factor-rc: IN: scratchpad
CONSTANT: foo "/home/jon/baz"

Cheers,
Jon
------------------------------------------------------------------------------
Slashdot TV.  
Video for Nerds.  Stuff that matters.
http://tv.slashdot.org/
_______________________________________________
Factor-talk mailing list
Factor-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/factor-talk

Reply via email to