greggirwin on master
Change spec for `new-line?` Merge pull request #5141 from A… (compare)
/remote server
the command just dispatches the request to an execution server`
@greggirwin Another option to transfer the current function context words and refinements and the values, is to use the set
syntax. It is perfect for keeping trace of refinements:
ctx: [[a b c /red ref-arg] [a b c false false]]
You have just to convert /red
to word before executing set
When words-of
and values-of
will be implemented for function it will be easy to write
ctx: reduce [words-of context? 'ref values-of context? 'ref]
Also set
words argument could accept refinements, so you can simply write:
set ctx/1 ctx/2
By far my most common case for filenames is date-naming them, which isn't a good match for
composite
and handled better byformat
.
It's good until you want to customize it a lot.
[[keys][values]]
split form with refinement you have to make a last management of the keys block to extrapolate the refinements, change to words and build a separate refinements block in case you would need this information.
It's good until you want to customize it a lot.
I guess I've always customized them a lot, because it's so helpful IMO. e.g. zero padding counts and ISO8601 formatting dates, so lexical sorting works.
`"..."`
is so utterly bad for you, let's consider just an empty issue # "..."
, because #`
is completely ugly and using only opening quote makes no sense to me, if it's quotes they should be on both ends. # "..."
is somewhat similar to char syntax though. But then any other symbol allowed in issues will be better than backquote. ##
#!
#$
#%
#=
#|
#/
#\
#.
#~
Which way to you guys use try
most of the time?
if error? try [...] [..after-error recovery..]
set/any 'err try [...] (... later err is processed...)
try
Please post your answers into thread if possible. Thanks.
try/catch
isn't a thing. We have throw/catch
which is not specifically error related, but is about general non-local flow control.
Do we have a function that creates a contex and binds the following code to context it running?
I want to create a with
function:
with [a: 33 c: 33] [...code...]
Which is equivalent to:
do bind [...code...] make object! [a: 33 c: 33]
But I would like to know if it already exists.