Re: OK what does ` mean - seriously seems to be not documented.

new topic     » goto parent     » topic index » view thread      » older message » newer message
gimlet said...

Why use value() rather than new_from_string()?

No reason at all. Both work the same way.

However, calling value() or new_from_string() requires you to first read the file in, line by line. You'd still have handle multi-line values specially. get() does it for you automatically.

gimlet said...

You are not making a firm distinction between what a set of bytes means and the actual values.

Neither does a CPU.

gimlet said...

'A' + 'B' is nonsense 65 + 66 is not. Their representations are the same (and in Euphoria presumably if you wrote c = 'A' + 'B' then c would be assigned 131) - but shouldn't that be nonsense?

It's very convient to be able to convert from 1 to '1' and back just by adding or subtracting '0'.

For the english alphabet, a similar trick works - 'a' - 'A'. The resulting value can be used to convert to/from uppercase and lowercase.

gimlet said...

I guess it is that the manual doesn't really explain the intent of functions and things are scattered through the manual so that unless you know what you are looking for you can only find it by examining all the libraries.

The documentation is not perfect. IMVHO it's pretty good overall, especially with cross-linking to related functions and pointing out how the function is meant to be used/what it is meant to be used for via examples. But certainly, if you have areas where you can point out specific examples that need to be addressed, you are more than welcome to do so. Likewise, if you have already written improved docs (or are at least willing to do so), you are more than welcome to share that work with us.

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu