Re: [racket-users] Re: opinions on YAML as communication tool

2016-10-23 Thread Konrad Hinsen

On 21/10/2016 23:00, Jack Firth wrote:


If you'd still like to use yaml, I would like to quietly point out that each of 
the following is a valid boolean value in yaml:

...

Google for "YAML Norway" for some real-life illustrations of this 
problem. The ISO country code for Norway is "no", which the YAML parser 
converts into "false".


Konrad.

--
You received this message because you are subscribed to the Google Groups "Racket 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to racket-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [racket-users] Re: opinions on YAML as communication tool

2016-10-22 Thread 'John Clements' via Racket Users

> On Oct 21, 2016, at 14:00, Jack Firth  wrote:
> 
> If you'd still like to use yaml, I would like to quietly point out that each 
> of the following is a valid boolean value in yaml:
> 
> - true
> - false
> - yes
> - no
> - y
> - n
> - True
> - False
> - TRUE
> - FALSE
> - on
> - off
> - YES
> - NO

Yes, that’s pretty much the final nail in the coffin. I’m starting to recognize 
that some of the initial appeal of YAML was due to DWIM that is almost certain 
to later come back to bite me. Looks like I’m stuck with sexps, json, or … 
wait, I could just roll my own parser! Wouldn’t take a second!

…

Just kidding.

Many thanks for the input.

John


-- 
You received this message because you are subscribed to the Google Groups 
"Racket Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to racket-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


signature.asc
Description: PGP signature


[racket-users] Re: opinions on YAML as communication tool

2016-10-21 Thread Jack Firth
If you'd still like to use yaml, I would like to quietly point out that each of 
the following is a valid boolean value in yaml:

- true
- false
- yes
- no
- y
- n
- True
- False
- TRUE
- FALSE
- on
- off
- YES
- NO

... but it's not strictly case-insensitive, as yES is parsed as a string

-- 
You received this message because you are subscribed to the Google Groups 
"Racket Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to racket-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.