News for hackers. Stuff that matters.
Re:Ren: a lightweight data-exchange text format by iainmerrick on Friday October 20, 2017 @10:58AM (#15516279)
The very first entry in the FAQ ("Why is none used instead of null?") isn't very convincing! It says null "it isn't friendly to normal people who might be given configuration or message files to edit," and gives the example:

  Children: none
  Opinions: none
That certainly looks pleasant and human-readable, but a bit of a nightmare to interpret! Couldn't it just as well be "Children: 0" or "Children: []"? If the idea is to let non-technical people edit configuration files, the code reading the file will have to be very flexible and forgiving.

(Edit to add: maybe that's something you mostly get for free in REBOL? It would be a major headache in most other languages though)

Re:Ren: a lightweight data-exchange text format by rebolek on Friday October 20, 2017 @12:01PM (#15516811)
Yup, the right reason is, that `none` is free in Rebol/Red. Ren is basically nothing else than Rebol/Red syntax under different name. I was of the designers of Ren, it’s been few years, but it’s cool to see it on HN.
Re:Ren: a lightweight data-exchange text format by rgchris on Friday October 20, 2017 @01:25PM (#15517523)
Note that Ren-C (a fork of Rebol that is only tangentially related to Ren) uses `blank` or literal `_`.

The language concept is a bit more fundamental than config files. Rebol (and Ren-C and cousin Red) is a fully homoiconic language that itself has tools for parsing and interpreting DSLs ('Dialects' to use the language's nomenclature) that use the same language rules. In essence you do indeed get the lexer for free.

Would recommend a wee read of: http://blog.hostilefork.com/why-rebol-red-parse-cool/

I've argued that Ren is somewhat redundant as it fills the same space that Rebol does though Rebol lacks a formal specification at this time.

Re:Ren: a lightweight data-exchange text format by greggirwin on Friday October 20, 2017 @02:37PM (#15518136)
Which Rebol fills this space, R2 or R3? The idea was also not loadable Redbol compatibility (which would be nice of course), but general utility. So Ren adds new types and changes others, where it thinks that is best.
Re:Ren: a lightweight data-exchange text format by hood_syntax on Friday October 20, 2017 @11:13AM (#15516406)
Valid points about the ambiguity in that example, but I do believe 'none' is easier to parse than 'null' for the average person. I'm assuming that none is meant to represent, like null "no input was given" not "an input of zero/an empty list was given".
Re:Ren: a lightweight data-exchange text format by mh-cx on Friday October 20, 2017 @01:01PM (#15517316)
But in that case, wouldn't “unknown“ be even better? I'm not a native english speaker, though, so I may miss some fine nuances in the meaning of “none“.
Re:Ren: a lightweight data-exchange text format by hood_syntax on Friday October 20, 2017 @01:27PM (#15517548)
Disclaimer: this is just my personal views, so I may be missing something here.

'unknown' is almost like saying "We don't know what should be here", while 'none' is closer to saying "We didn't get passed any information here".

Ultimately, I feel like 'unknown' is more specific, it conveys intent beyond that of 'none'. Such as, it could imply we actually don't know what kind of data 'Opinions' should hold, rather than that there merely happens to be no data to put there.

Re:Ren: a lightweight data-exchange text format by greggirwin on Friday October 20, 2017 @02:09PM (#15517896)
We can throw out options for a long time, as there is no perfect choice. Ren went with `none` as it is standard Rebol and Rebol's designer thought about it long and hard.
Re:Ren: a lightweight data-exchange text format by jpfed on Friday October 20, 2017 @01:56PM (#15517798)
As a native English speaker, I agree that "unknown" is better than "none".
Re:Ren: a lightweight data-exchange text format by always_good on Friday October 20, 2017 @02:21PM (#15518004)
I would hope that a native English speaker knows the difference between

Cookies in the jar: none

and

Cookies in the jar: unknown

Re:Ren: a lightweight data-exchange text format by greggirwin on Friday October 20, 2017 @02:40PM (#15518162)
Unknown is a nice word for this, yes. And while we don't focus exclusively on being terse in the Redbol world, "unknown" is a lot more work to type than "none", harder to scan visually as well.
Re:Ren: a lightweight data-exchange text format by vorotato on Friday October 20, 2017 @11:52AM (#15516728)
also "Some | None" is a common functional programming idiom.
Re:Ren: a lightweight data-exchange text format by amyjess on Friday October 20, 2017 @11:59AM (#15516787)
It's worth mentioning that Python refers to null as None.
Re:Ren: a lightweight data-exchange text format by greggirwin on Friday October 20, 2017 @12:54PM (#15517251)
Noted. Thanks.