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

World: r3wp

[World] For discussion of World language

Geomol
25-Nov-2011
[3]
Thanks, Sunanda!
Robert
25-Nov-2011
[4]
I expect it to be a bit like Lua.
Pekr
26-Nov-2011
[5]
Teaser 8: User defined operators ....

Instead of: 

insert next find block 2 "blue"

you write:

insert block after 2 "blue"
Steeve
26-Nov-2011
[6]
the & (concat) operator at least
Geomol
26-Nov-2011
[7]
Like this?

w> &: operator [v1 v2] [join v1 v2]
w> "abc" & "def"
== "abcdef"
Steeve
26-Nov-2011
[8]
yup :)
Geomol
26-Nov-2011
[9]
ok :)

In some applications, it would probably be used as binary and, and 
that's ok too.
BrianH
26-Nov-2011
[10]
Can you do operators with more or less than 2 arguments? We figured 
out how to do postfix operators in REBOL, Red, etc. if you support 
operators with 1 argument, and ternary operators if you support operators 
with 4 arguments, the third being a keyword. You could even support 
multiple ternary operators starting with the same word by making 
one that dispatches on the keyword.
Geomol
26-Nov-2011
[11]
Question noted. Will be in the QA.
Marco
26-Nov-2011
[12x2]
Can I post here my wishes for R3 ?
Since R3 is dead, I mean.
BrianH
26-Nov-2011
[14]
We don't want to clog up this group with off-topic requests.
Pekr
27-Nov-2011
[15]
Teaser 7: The range datatype

w> type? 2-5
== range!
w> block: [a b c d e f g]
== [a b c d e f g]
w> block/2-5
== [b c d e]
w> block/4-4
== [d]
w> block/4-3
== [c]
w> block/4-1
Andreas
27-Nov-2011
[16]
w> type? a-b
??
PeterWood
27-Nov-2011
[17x2]
w> type? join a {"-" b] ?
Or :

to : operator [
	first
	last
][
	join first ["-" last]
]
type? a to b
Steeve
27-Nov-2011
[19]
Geomol: The use of a path! to  denote a range is a clever way.

But I don't think you need a range! datatype to express boundaries. 
A pair! would do the job as well.
>> block/2x5
Geomol
27-Nov-2011
[20x4]
Or
to range! reduce [a b]

Use pair! ... hm. Extrapolate that to be used in a matrix.
Or an image.
w> a-b: 1
== 1
w> type? a-b
== integer!
w> a-b: 1.0
== 1.0
w> type? a-b
== real!
It's just like you can't specify pairs using variables.

w> axb: 1
== 1
w> type? axb
== integer!

Same in REBOL.
Andreas
27-Nov-2011
[24x5]
Thanks for the answer.
w> foreach x 1-10 [print x]
?? :)
Or in plain English: is range! a series! type?
Related:
w> to block! 1-10 ; == ??
Is a range! convertible to a block!/a series! type?
Gregg
27-Nov-2011
[29]
I've used x..y for range notation. In REBOL, that limits you to 255 
if mapped to a tuple, but World wouldn't have to have that limitation. 
I've also used dash/emdash. My BOUNDS dialect is flexible, as it 
was for experimentation.
sqlab
28-Nov-2011
[30]
That looks pretty promising.
What platforms are supported?
Geomol
28-Nov-2011
[31]
QA question noted.
Endo
28-Nov-2011
[32]
Its too bad but http://world-lang.orgcannot be accessible from Turkey 
:( I'll try with a VPN.
Geomol
28-Nov-2011
[33x2]
How can that be?
Stats about audience for
http://world-lang.org
after the first 5 days of countdown.

See: http://www.fys.ku.dk/~niclasen/world/stats_20111128.png
Mchean
28-Nov-2011
[35]
so the legacy of Rebol will be Rebol clones - not so bad a legacy 
actually
BrianH
28-Nov-2011
[36]
I'm a little sorry to see the R2-style port model instead of the 
R3 style. Are all ports direct at least?
Geomol
28-Nov-2011
[37]
Are there R3 docs in this area? I've look here:
http://www.rebol.com/r3/docs/concepts.html
and:
http://www.rebol.com/r3/docs/guide/network.html

Those docs either seem to be for R2 or am missing.
Kaj
28-Nov-2011
[38]
It's on the wiki
Geomol
28-Nov-2011
[39]
What wiki?

http://www.rebol.com/r3/docs/index.html

is listed as "REBOL 3 Documentation (wiki)" on http://www.rebol.com/docs.html


Do you mean the "old" wiki: http://www.rebol.net/wiki/Table_Of_Contents
Gregg
28-Nov-2011
[40]
Nice breakdown John.
Geomol
28-Nov-2011
[41]
The stats, Gregg?
Gregg
28-Nov-2011
[42x2]
Yes.
The countdown is nice as well.
Geomol
28-Nov-2011
[44x2]
Yeah, interesting to see where people, who are interested in REBOL-like 
languages, come from.
Thanks!
Pekr
28-Nov-2011
[46]
R3 port model is definitely a must :-)
Geomol
28-Nov-2011
[47]
:)
Kaj
28-Nov-2011
[48x2]
Yes, that wiki. It's the only real wiki in the sense that people 
can edit it
http://www.rebol.net/wiki/Ports
Geomol
28-Nov-2011
[50]
Thanks!
Kaj
28-Nov-2011
[51x2]
http://www.rebol.net/wiki/Schemes
http://www.rebol.net/wiki/Scheme:_HTTP