by

Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Jun 03 22:27
    earl removed as member
  • Jun 03 21:50
    greggirwin opened #231
  • Jun 03 17:15

    dockimbel on master

    FEAT: links Lexer page to main … (compare)

  • May 27 17:24

    dockimbel on master

    FEAT: adding a page for documen… FIX: missing multiline string! … FEAT: adds extra description fo… and 28 more (compare)

  • May 26 18:40

    greggirwin on master

    FEAT: mention matching by datat… Merge pull request #230 from 92… (compare)

  • May 26 18:40
    greggirwin closed #230
  • May 26 16:04
    9214 opened #230
  • May 26 09:13

    dockimbel on master

    FEAT: adding a page for documen… FIX: missing multiline string! … FEAT: adds extra description fo… and 21 more (compare)

  • May 25 17:39

    dockimbel on 0.6.5

    FEAT: fills in the missing sect… (compare)

  • May 23 21:00
    greggirwin opened #229
  • May 21 13:13

    dockimbel on 0.6.5

    FIX: exclude backslash from REF… Merge pull request #226 from 92… (compare)

  • May 21 13:13
    dockimbel closed #226
  • May 21 01:48

    greggirwin on 0.6.5

    FEAT: update section on MONEY! … Merge pull request #227 from 92… (compare)

  • May 21 01:48
    greggirwin closed #227
  • May 20 17:37
    greggirwin opened #228
  • May 20 12:06
    9214 opened #227
  • May 05 12:34
    9214 edited #226
  • May 05 12:34
    9214 synchronize #226
  • Apr 28 15:47
    9214 opened #226
  • Apr 22 20:13

    greggirwin on 0.6.5

    FEAT: add REF! entry in Redbin … FEAT: REF! datatype documentati… FIX: a typo. and 2 more (compare)

hiiamboris
@hiiamboris
Do we have some kind of equality rules matrix for all datatypes somewhere? ==/=? are somewhat trivial, but I'm interested in =.
GiuseppeChillemi
@GiuseppeChillemi
@hiiamboris Very interesting topic. I have in my (long) to-do list this and other tables.
@meijeru has notes in his spec about comparison rules.
hiiamboris
@hiiamboris
First link is a comparison in the sense of "what's best for my case" though ;)
hiiamboris
@hiiamboris
Rudolf has gathered some good info :+1:. I didn't know about this for example:
>> 100% = 0:0:1
== true
Gregg Irwin
@greggirwin
True on aggregate comparison. Sorry for the false positive.
GiuseppeChillemi
@GiuseppeChillemi

I have found another difference worth documenting between Red and Rebol: the former is able to convert an object to block, the latter isn't. Do you confirm this?

Rebol

>> probe to-block context [a: 1 b: 2]
[make object! [
        a: 1
        b: 2
    ]]
== [make object! [
        a: 1
        b: 2
    ]]
>>

Red

>> probe to-block context [a: 1 b: 2]
[a: 1 b: 2]
== [a: 1 b: 2]

Could I enter it writing exactly:
Red to-block is able to convert objects but Rebol isn't
?

dsunanda
@dsunanda
Rebol can do it - but a different way:
 probe third context [a: 1 b: 2]
[a: 1 b: 2]
GiuseppeChillemi
@GiuseppeChillemi
Thanks, so it's worth documenting it but in a different way.
Oldes Huhuman
@Oldes
@GiuseppeChillemi have you noticed, that there is multiple Rebol versions? In Rebol3 it is possible:
>> to-block object [a: 1 b: 2]
== [
    a: 1
    b: 2
]
also:
>> body-of object [a: 1 b: 2]
== [
    a: 1
    b: 2
]
GiuseppeChillemi
@GiuseppeChillemi
Yes, I have noticed. It's Rebol2 which can't handle object to do in to-block
Rudolf Meijer
@meijeru
Inspired by this I tried to-path <object> and it worked (should not, in my opinion). I have raised issue #4420 for this.
GiuseppeChillemi
@GiuseppeChillemi
Page not found!
Rudolf Meijer
@meijeru
It is an issue in red/red repository, not in red/docs, so the link that github makes for free is not useful. Just go to the main repository.
hiiamboris
@hiiamboris
Found an undocumented feature: https://github.com/red/red/issues/4418#issuecomment-621183984
continue works on W7 for me, stop and done don't. Although View docs say:
Is this something unofficial/undecided or just missing in documentation?
Nenad Rakocevic
@dockimbel
@hiiamboris Changed several times, the version in the code is the right one for now. Still needs some extra work.
Toomas Vooglaid
@toomasv
done has worked for me on W10.
hiiamboris
@hiiamboris
Oh. You're right, done is working too. modal just hides the window after closing so probably didn't notice it was still in the taskbar :D
Rudolf Meijer
@meijeru
On ref! documentation: Doc just re-allowed / in ref! literals (commit 9fc4896) so this needs to be updated, I think.
Gregg Irwin
@greggirwin
Yes.
Maciej Łoziński
@loziniak
Hi! Is it just me or the the official Red docs are down?
ping doc.red-lang.org
ping: doc.red-lang.org: Temporary failure in name resolution
hiiamboris
@hiiamboris
just you
GiuseppeChillemi
@GiuseppeChillemi

Any help brings you to the wrong conclusion that if a value is not none or false than it is true (logic).

>> help any
USAGE:
     ANY conds

DESCRIPTION: 
     Evaluates, returning at the first that is true. 
     ANY is a native! value.

ARGUMENTS:
     conds        [block!] 

>> any [false 22 33]
== 22

...Evaluates, returning at the first that is true.

But in Redbol logic:

>> true = 22
== false
>>

I would suggest changing this help text.

Gregg Irwin
@greggirwin

Agreed. We can use the text from R2 unless someone has a better suggestion.

Evaluates and returns the first value that is not FALSE or NONE.

Please file a ticket for it @GiuseppeChillemi.

And include all in there.
Semseddin Moldibi
@endo64

any : Evaluates and returns the first value that is not FALSE or NONE, (returns) NONE otherwise
all : Evaluates and returns at the first FALSE or NONE, (returns the) last value otherwise

And better to note (did already )

>> all []
== none ; Red
== true ; R2 & R3
Gregg Irwin
@greggirwin

Man, the wording is a challenge here.

any : Evaluates and returns the first value that is not FALSE or NONE; otherwise NONE
all : Evaluates and returns at the first FALSE or NONE; otherwise returns the last value 

any : Evaluates and returns either NONE or the first value that is not FALSE or NONE
all : Evaluates and returns either NONE, at the first FALSE or NONE, or the last value

Beyond this "truthy" starts creeping in as a shortcut. :^\

Semseddin Moldibi
@endo64
any : Evaluates and returns the first non-falsy value (or NONE)
all : Evaluates and returns the last truthy value (or NONE)
I don't know if falsy and truthy are real words.
We can remove or NONE parts it is easy to guess it will return none if the explanation doesn't meet.
Gregg Irwin
@greggirwin
"returns at" is a little ambiguous, given at and series values. It's not terrible though, even the R2 strings. As you say, they aren't complex funcs and a quick test is a good learning exercise.
I also thought to remove "Shortcut AND/OR", even though help can use them. Any/all will get buried in all the other results.
GiuseppeChillemi
@GiuseppeChillemi
done: red/red#4469
hiiamboris
@hiiamboris
Later I had to add a certificate exception, which it issued to gitbooks, not for red-lang.org ;)
Toomas Vooglaid
@toomasv
image.png
hiiamboris
@hiiamboris
Yeah, similar thing
But for some small time I couldn't even ping it - no IP address for the DNS name
Toomas Vooglaid
@toomasv
Yeah, it has troubled me few days already. Curiously, in Chrome it works ok.
Maciej Łoziński
@loziniak
On ← doc.red-lang.org – I also cannot see it. Already mentioned that ↑ some time ago. @nedzadarek
Rudolf Meijer
@meijeru
Same here.
Gregg Irwin
@greggirwin
@x8x, can you look into this?
hiiamboris
@hiiamboris
Yeah, died again :/
FLuX LoOP
@x8x
From what i see, GitBook has issues resolving in some areas.
FLuX LoOP
@x8x
Google is their registrar, CloudFlare is their name server, which is pretty solid. They may be playing with configs, 10 minutes ago no NS records and a couple of origin servers where unreachable by IP. Now all seams to work from here.
hiiamboris
@hiiamboris
There was another mirror of Red docs on some site, but can anyone recall the address?
Found