World: r3wp
[!REBOL3]
older newer | first last |
Fork 2-Aug-2010 [4125] | Ladislav: Well that's where the scary comes from, because although they are standardized somewhat within that community they carry along whatever impressions people have had about that small community, which isn't necessarily good. The guy down the hall who writes everything in Haskell and can't cooperate with anyone... or whoever. |
Maxim 2-Aug-2010 [4126] | this does the exact same in less code X: rejoin [X Y] |
Fork 2-Aug-2010 [4127x3] | My point is just about words appearing in early source that people are exposed to. "rejoin" is one of those things that doesn't come off as intuitive as to what it means. |
macro is a bit of a loaded term in languages (as some people would assume "preprocessor macro" and not something more like "application scripting macro"). But it looks friendlier and people would be less surprised when set-words wrote into containing contexts. | |
The existing FUNCTION is a waste of the word and does nothing you can't do with /LOCAL so I really wish the mistake of using that word for it would be admitted and give it to FUNCT. | |
Ladislav 2-Aug-2010 [4130x3] | FUNCTION is one of the longest existing functions in REBOL. It is there since REBOL 1.x, when FUNC was not supposed to use /LOCAL. I still have some code working since then. |
(as far as I remember, it was native back then) | |
Just to ease anybody's statements, that R3 will "require complete rewrites of existing code" - the change from R1 to R2 was much more "disruptive", as everybody can easily find out, and even then, a lot of code did not cease to work. | |
Fork 2-Aug-2010 [4133] | Rebol has a unique power to rework such things retroactively. It would be possible to do a search/replace of FUNCTION in existing files with LOCALFUNC and then define it to behave appropriately in your R1/Forward, R2/Forward, etc. My question is whether the unwillingness to bite such a bullet is worth the speed bump of explaining to every single user of Rebol in the future what a "FUNCT" is, forever... and ever... and ever... |
Ladislav 2-Aug-2010 [4134] | No matter the names, you will have to explain all the FUNC versions anyway |
Fork 2-Aug-2010 [4135] | People have to start using systems before they completely understand them. The knowledge comes in bits. Understanding of FUNCT (by whatever its name) is indeed necessary, but you often want people to be able to smile and nod as if they understand parts of a codebase that aren't immediately relevant to the point you're demonstrating. |
Maxim 2-Aug-2010 [4136] | The only function name I hate in R3 is FUNCT. it doesn't read well, its not a proper abreviation, its not cute... its just look like a truncated word and is totally obscure in meaning. |
Fork 2-Aug-2010 [4137] | And in lowercase it's too close to func while being very different... |
Maxim 2-Aug-2010 [4138] | I rarely agree with Fork ;-) on this one I TOTALLY agree. |
Fork 2-Aug-2010 [4139x3] | Too close in uppercase too, actually. |
Ah... so what's it like to finally feel some common sense? :-) | |
Pretty soon this will become clear, too: http://hostilefork.com/2010/07/18/clocks-that-run-backwards/ | |
Maxim 2-Aug-2010 [4142] | I'd rather use something purposefully obscure like FCT. if you're going to make a name shorter for the sheer reason of making it shorter... at least make it different. I would much prefer FUNCTOR. its obscure, yes, but caries a sense of "find out what is the difference". 'FUNCT will go unnoticed for the majority of users. I wouldn't mind if FUNCT was a shorthand for FUNCTOR. |
Fork 2-Aug-2010 [4143x2] | Rebol doesn't make a habit in general of short names, and when it does I always wonder "why those". Found some odd ones while working on Rebmu: |
http://github.com/hostilefork/rebmu/blob/master/rebmu.r#L191 | |
Henrik 2-Aug-2010 [4145] | Carl says, he likes to use longer names, if the function is not meant to be used by end-users. |
Gregg 2-Aug-2010 [4146] | Fork, I won't say you're wrong on names, but you can't be right. :-) Naming is subjective, and there is no such thing as intuitive; unless you use natural language as the reference. |
Fork 2-Aug-2010 [4147] | I like to feel like there's some matter of principle driving why the language doesn't define "app" for append or "rev" for reverse by default. So yes, I'd use natural language as the reference in this case, but only because it seems like a convention which is *almost* followed but with these few exceptions that do not seem necessary. |
Gregg 2-Aug-2010 [4148] | REBOL is not about being as terse as possible. That's for Perl and Rebmu. I don't agree with all the designer's choices, but I can at least understand most of them. We all have things we don't like, and those things are different for each of us. |
Fork 2-Aug-2010 [4149] | I feel like it's almost possible to teach people non-idiomatic Rebol and have it make sense from the get-go, where you can really focus on the code. There are ways to keep from triggering "WTF" responses, like putting in parentheses when they're not strictly necessary. And it seems so close that it's a shame the last little bit isn't done. |
Gregg 2-Aug-2010 [4150] | The catch is that "the last little bit" is not little at all. It's fundamental. I know you know that, but if we change REBOL to work like C and PHP people expect, that's what it will be. |
Maxim 2-Aug-2010 [4151x2] | experienced programmers have learnt to accept idioms like the requirement of parens on function calls. they have to understand a different set of idioms. "unlearning" that some of what they perceive as "fundamental" in programming is hard. new programmers will have it the other way round if they learn REBOL first... why do we needs comas, and parens everywhere.... seems like waste. |
where are refinements, things like that. | |
Fork 2-Aug-2010 [4153] | Depending on how you are presented with something, the "unlearning" can be either a joy or a suffering. Put a kid on a bicycle with no training wheels and they fall and get hurt and they might not appreciate bicycles very much. Give them some training wheels and let them get comfortable and be happy the day it comes off. |
Maxim 2-Aug-2010 [4154x2] | yes, but its still a bicycle. start them of on a tricycle and none of what they learned there it is usefull. on a tricycle, if you lean you fall. on a bike, if you don't lean you fall. |
(to an extent, obviously) | |
Gregg 2-Aug-2010 [4156] | Maybe this should move to advocacy. |
Maxim 2-Aug-2010 [4157] | yeah, I just realized we wheren't there... but this tangent is somewhat exhausted ;-) we need 'FUNCTOR ;-) |
Ladislav 2-Aug-2010 [4158x2] | Since I was unable to get an answer to my question: I want to ask you a question related to your refinement-arguments initialization" (actually, it is not initialization, but "unused refinement arguments", like the /local arguments are usually preferences (see the wording of my answers at http://stackoverflow.com/questions/3168226/how-value-function-really-works )" from RebolTutorial messing the thing up with a purported incompatibility between FUNCT and FUNC, I guess, that this is the place where the question would be at least understood. So, is there anybody actually preferring the "unused refinement arguments" to be unset, than to be set to #[none] at every function call? |
oh, sorry for the above mess, it is totally unreadable, as it looks | |
Maxim 2-Aug-2010 [4160x3] | THEY HAVE TO BE NONE! |
so many coding patterns depend on it. | |
that is for 'FUNC. not shure what the difference is with FUNCT, but I'd prefer them to be none there too, though I'm not currently "schooled" as to the intricacies of 'FUNCT and what effects any change would have. | |
Ladislav 2-Aug-2010 [4163x3] | No difference with FUNCT, stop that |
OK, I understand, that your preferences are to set these arguments to #[none] | |
so many coding patterns depend on it - is that a general sentiment here? | |
Maxim 2-Aug-2010 [4166] | I have a counter question. why would be set them to unset! ? |
Ladislav 2-Aug-2010 [4167x3] | Because they are, in fact, "undefined", which, by convention, is commonly expressed by having such variables unset in other cases |
Even in functions, undefined arguments are in other cases unset, not set to #[none] | |
(I guess, that you know examples for that) | |
Maxim 2-Aug-2010 [4170x2] | in R2 everything is set to none, not sure about R3. |
though I (and many others) often use none, to indicate the use of a default or fallback value. | |
Ladislav 2-Aug-2010 [4172] | R2 example (you surprised me not knowing it): >> f: func [x [any-type!]] [value? 'x] >> f == false |
Maxim 2-Aug-2010 [4173x2] | ah, but here you actually supplied unset to the function. in a way, its not the same as not specifying the /refinement. |
but yes, the line is thin. | |
older newer | first last |