« first day (3187 days earlier)      last day (593 days later) » 

1:10 AM
posted on July 23, 2019 by @hostilefork Brian Dickens

@hostilefork wrote: We've been discussing the use of conventional methods to try a pleasing APPEND. But maybe a little prototype using some modern Ren-C-isms can sway public opinion that a splice-by-default world is not the utopia one might want it to be (which we know) and that better options are available... old-append: :append append: function [

 
 
7 hours later…
8:20 AM
posted on July 23, 2019 by hostilefork

There is a controversial interpretation of the /PART refinement on APPEND and INSERT which says that it refers to an integer length of how many units of the result series type should be used. #2096 However, R3-Alpha doesn't quite heed this rule. It uses the length of the source series to clip that limit: r3-alpha>> append/part "abc" ["defg"] 2 == "abcd" r3-alpha>> append/p

 
9:19 AM
posted on July 23, 2019 by hostilefork

(...) let me quote Nenad's reasoning from the discussion in the related Red issue I linked to above (red/red#599 (comment)): The /part behavior in R3 is the same as in R2 and is well defined. If the argument is an ? integer!, only that number of characters (and not values) are taken from the value to be append-ed. (...) this behavior is more helpful as it's costly and complicated to impl

 
 
12 hours later…
9:13 PM
user image
2
 
9:37 PM
posted on July 23, 2019 by @hostilefork Brian Dickens

@hostilefork wrote: Mutate strings aliased as BINARY!, and vice-versa, as in Rebol2! Rebol2's AS-BINARY and AS-STRING provided a convenient aliasing between binary and string as Latin1 single-byte characters: rebol2>> b: as-binary s: "hello" == #{68656C6C6F} rebol2>> append b #{68} == #{68656C6C6F68} rebol2>> s == "helloh" ; binary

2
 

« first day (3187 days earlier)      last day (593 days later) »