r3wp [groups: 83 posts: 189283]
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

World: r3wp

[!REBOL3]

Ladislav
11-Jan-2011
[6871]
it is hard to use a logic argument when you refuse to discern nouns 
from other words, but, in that case, you are unable to stick to the 
function naming convention anyway, and I don't know what do you want 
to discuss
Kaj
11-Jan-2011
[6872]
How am I refusing to discern nouns from other words?
Ladislav
11-Jan-2011
[6873]
Every variable name is a noun, in principle.
Kaj
11-Jan-2011
[6874x2]
How is that not true?
I mean variable in the sense of traditional programming languages
Ladislav
11-Jan-2011
[6876]
we do not have "variable names" we have words
Kaj
11-Jan-2011
[6877x3]
See above
foreach [cat? dog?] [1 2 3 4] [fight cat? dog?]
This would be the result of your rule
Ladislav
11-Jan-2011
[6880x2]
this would be the result?
*very unlikely*
Kaj
11-Jan-2011
[6882]
Cats and dogs are nouns
Ladislav
11-Jan-2011
[6883]
so what
Kaj
11-Jan-2011
[6884]
You said your rule applies to nouns
Ladislav
11-Jan-2011
[6885]
not my rule, please read the rule, I am not the one who wrote/defined 
it, I am only using it
Kaj
11-Jan-2011
[6886]
No, you are interpreting it for us, while many of us have a different 
interpretation
Steeve
11-Jan-2011
[6887]
To begin with, I never liked faces-of or faces? proposals.
faces
 should be enough.
Plural means that it returns a serie of faces.

It may be a static list (reference) or a constructed one (function), 
I don't bother.
The context give all the hints I need.
*-of is a lame and useless convention.

Because a property or a method is always the relative "-of" something 
else .
Ladislav
11-Jan-2011
[6888]
your interpretation is *quite exceptional*, how could I be able to 
get to the same one?
Kaj
11-Jan-2011
[6889x2]
I agree, faces should be enough, unless that is likely to be used 
for something else in the same context, in which case you can switch 
to a convention for a more elaborate name
Ladislav, I'm just asking you how your interpretation works, and 
you said it applies to nouns
Ladislav
11-Jan-2011
[6891]
Are you saying, that you are unable to read the rule, and see, that 
it applies to nouns?
Kaj
11-Jan-2011
[6892]
Are you unable to see that this rule has not been applied to most 
REBOL words?
Ladislav
11-Jan-2011
[6893]
Because it is a REBOL function naming convention, which you happen 
to not know, since you did not read it yet
Kaj
11-Jan-2011
[6894x2]
I did read it
Why do you keep putting falsehoods in my mouth?
Ladislav
11-Jan-2011
[6896]
Then you should know, that it should not apply to most Rebol words
Kaj
11-Jan-2011
[6897x4]
Why not? You say it's about all nouns
http://www.writingcentre.uottawa.ca/hypergrammar/nouns.html
A noun is a word used to name a person, animal, place, thing, and 
abstract idea. Nouns are usually the first words which small children 
learn. The highlighted words in the following sentences are all nouns:

    Late last *year* our *neighbours* bought a *goat*.
    *Portia* *White* was an *opera* *singer*.

    The *bus* *inspector* looked at all the *passengers*' *passes*.

    According to *Plutarch*, the *library* at *Alexandria* was destroyed 
    in 48 B.C.
    *Philosophy* is of little *comfort* to the *starving*.
According to you, all starred words (no rich text in AltME) should 
get question marks
Ladislav
11-Jan-2011
[6901]
For other people, just to make sure they understand even if they 
don't remember the wording of the http://www.rebol.com/r3/docs/concepts/scripts-style.html#section-10
convention:


- the convention applies *only* to function names, not to the REBOL 
words in general

- when picking a name for a function, any candidate is not a name 
yet, it is just a word/words, and it can be examined, whether it 
is a noun or not
- etc.
Kaj
11-Jan-2011
[6902]
Most REBOL words hold functions, so what's the difference? And with 
all words, it's impossible to tell from the lexical notation if it's 
a function or not
Ladislav
11-Jan-2011
[6903]
The difference is, that when sticking to the convention, it is easier 
to find out, that:


DO is a function, PRINT is a function, GET is a function, LENGTH? 
is a function
Kaj
11-Jan-2011
[6904]
So I ask again, what about the REBOL functions that don't conform 
to this convention?
Ladislav
11-Jan-2011
[6905]
of course, it does not make any trouble to add WORDS-OF convention, 
since it does not introduce any ambiguities
Kaj
11-Jan-2011
[6906]
Using a question mark on LENGTH doesn't tell you that DO, PRINT and 
GET are functions
Ladislav
11-Jan-2011
[6907]
suggested reading: http://www.rebol.com/r3/docs/concepts/scripts-style.html#section-10
Maxim
11-Jan-2011
[6908]
the convention for functions simpy is that:
  -they should (start with) verbs

  -if using a noun, it should have some special char to imply its a 
  function. (i.e. size? vs size)
Ladislav
11-Jan-2011
[6909]
also: http://www.rebol.com/r3/docs/concepts/scripts-style.html#section-11
Maxim
11-Jan-2011
[6910x2]
words of breaks this convetion since it starts with an noun and isn't 
followed by a special char... I think that is the only point Ladislav 
is trying to make !!?!?
oops...    should be:   words-of
Ladislav
11-Jan-2011
[6912x4]
no, I was trying to make the point, that WORDS-OF may well be added 
as an alternative
(to the above doc article)
...since it is missing
...and since it does not introduce any ambiguities when added, as 
far as I am able to find out
Kaj
11-Jan-2011
[6916x4]
You would have a stronger case if you would admit that it is about 
property getters, not about nouns as such
The documentation would make a stronger case if it wouldn't confuse 
nouns and verbs
Some nouns can also be used as verbs.
This is impossible in human language. What it means is that some 
nouns can also be used as function names
Ladislav
11-Jan-2011
[6920]
While I see the WORDS-OF naming convention as coming from the C language, 
I am not a C hater to the extent to refuse it. As some noticed, it 
may even make the source code more human readable as in:

    length-of series

versus

    length? series