# Datatypes

**URL:** https://revolt.metaeducation.com/forum/c/development/datatypes/45.md?page=1

[Latest](https://revolt.metaeducation.com/forum/latest.md) · [Categories](https://revolt.metaeducation.com/forum/categories.md) · [Tags](https://revolt.metaeducation.com/forum/tags.md)

**Page:** 2

---

## [GET-BLOCK!, GET, and REDUCE](https://revolt.metaeducation.com/forum/t/get-block-get-and-reduce/1183)

<div class="topic-metadata">

**Author:** [@hostilefork](https://revolt.metaeducation.com/forum/u/hostilefork)\
**Replies:** 5\
**Last updated:** [September 2, 2024, 3:56am UTC](https://revolt.metaeducation.com/forum/t/get-block-get-and-reduce/1183 "2024-09-02T03:56:09Z")

</div>

R3-Alpha had what I had thought was a bizarre behavior: r3-alpha\>\> get 5 + 5 == 10 If something wasn't a WORD! or PATH! it would fall through. Unless it was an OBJECT!, in which case it would get the values of the obj…

---

## [Kinds of values?](https://revolt.metaeducation.com/forum/t/kinds-of-values/466)

<div class="topic-metadata">

**Author:** [@Brett](https://revolt.metaeducation.com/forum/u/Brett)\
**Replies:** 5\
**Last updated:** [August 24, 2024, 5:10pm UTC](https://revolt.metaeducation.com/forum/t/kinds-of-values/466 "2024-08-24T17:10:55Z")

</div>

Rebol series and values lack a built in way to add meta data. For example, imagine two blocks each in a different dialect. Without interpreting their content, how can they be distinguished? Another example is parsing a…

---

## [Ugly Types: Less Ugly Than History, Can We Do Better?](https://revolt.metaeducation.com/forum/t/ugly-types-less-ugly-than-history-can-we-do-better/2151)

<div class="topic-metadata">

**Author:** [@hostilefork](https://revolt.metaeducation.com/forum/u/hostilefork)\
**Replies:** 18\
**Last updated:** [February 23, 2024, 12:19am UTC](https://revolt.metaeducation.com/forum/t/ugly-types-less-ugly-than-history-can-we-do-better/2151 "2024-02-23T00:19:55Z")

</div>

The Limited and Ambiguous Historical Idea People are used to being able to do things like: x: 10 switch type? x \[ integer! \[print "It's an integer"\] block! \[print "It's a block"\] \] assert \[parse \[1 \[secon…

---

## [What is the use of typesets?](https://revolt.metaeducation.com/forum/t/what-is-the-use-of-typesets/2153)

<div class="topic-metadata">

**Author:** [@bradrn](https://revolt.metaeducation.com/forum/u/bradrn)\
**Replies:** 7\
**Last updated:** [February 22, 2024, 1:01am UTC](https://revolt.metaeducation.com/forum/t/what-is-the-use-of-typesets/2153 "2024-02-22T01:01:52Z")

</div>

Recent discussions have brought the notion of ‘typesets’ to my attention. On reading the source code, this confused me a bit… they don’t seem to be used all that much. Moreover, they seem to be subsumed by the idea of op…

---

## [Upcoming Datatype $WORD... What Will It Mean?](https://revolt.metaeducation.com/forum/t/upcoming-datatype-word-what-will-it-mean/2146)

<div class="topic-metadata">

**Author:** [@hostilefork](https://revolt.metaeducation.com/forum/u/hostilefork)\
**Replies:** 10\
**Last updated:** [February 16, 2024, 11:30pm UTC](https://revolt.metaeducation.com/forum/t/upcoming-datatype-word-what-will-it-mean/2146 "2024-02-16T23:30:28Z")

</div>

Something that has been nagging at me is that I've known I want to introduce $WORD, $(GR O UP), $TU.P.LE etc. (tentative names VAR-WORD!, VAR-GROUP!, VAR-TUPLE!). At first glance it seems like it would be a loss if $XXX…

---

## [{ Rethinking Braces }... as an array type?](https://revolt.metaeducation.com/forum/t/rethinking-braces-as-an-array-type/1727)

<div class="topic-metadata">

**Author:** [@hostilefork](https://revolt.metaeducation.com/forum/u/hostilefork)\
**Replies:** 9\
**Last updated:** [January 30, 2024, 11:33pm UTC](https://revolt.metaeducation.com/forum/t/rethinking-braces-as-an-array-type/1727 "2024-01-30T23:33:19Z")

</div>

I've historically been pretty attached to braces for strings. They sure can be nice. But I am increasingly thinking braces might be better applied as a new array type, called FENCE!: \[block\] • (group) • {fence} \>\> fe…

---

## [How to deal with users mutating DATE! and TIME! to be invalid?](https://revolt.metaeducation.com/forum/t/how-to-deal-with-users-mutating-date-and-time-to-be-invalid/240)

<div class="topic-metadata">

**Author:** [@hostilefork](https://revolt.metaeducation.com/forum/u/hostilefork)\
**Replies:** 9\
**Last updated:** [October 20, 2023, 2:19am UTC](https://revolt.metaeducation.com/forum/t/how-to-deal-with-users-mutating-date-and-time-to-be-invalid/240 "2023-10-20T02:19:08Z")

</div>

2020 is a leap year, so there's a February 29th: \>\> make date! \[29 2 2020\] == 29-Feb-2020 But let's say you have a year like 2017, in which there is no February 29th. R3-Alpha and Red are smart enough not to let you M…

---

## [Killing off Floating Point PAIR!](https://revolt.metaeducation.com/forum/t/killing-off-floating-point-pair/1666)

<div class="topic-metadata">

**Author:** [@hostilefork](https://revolt.metaeducation.com/forum/u/hostilefork)\
**Replies:** 1\
**Last updated:** [September 12, 2023, 5:28pm UTC](https://revolt.metaeducation.com/forum/t/killing-off-floating-point-pair/1666 "2023-09-12T17:28:35Z")

</div>

Rebol2 did not have floating point pairs: rebol2\>\> 10.20x3.04 \*\* Syntax Error: Invalid tuple -- 10.20x3.04 Red is very focused on graphics and making PAIR! play a central role. Despite that, it also does not have floa…

---

## [Could Each Datatype Have a "Second" (Hidden) "Slot"](https://revolt.metaeducation.com/forum/t/could-each-datatype-have-a-second-hidden-slot/1908)

<div class="topic-metadata">

**Author:** [@GiuseppeChillemi](https://revolt.metaeducation.com/forum/u/GiuseppeChillemi)\
**Replies:** 6\
**Last updated:** [July 21, 2022, 2:08am UTC](https://revolt.metaeducation.com/forum/t/could-each-datatype-have-a-second-hidden-slot/1908 "2022-07-21T02:08:51Z")

</div>

From some time I am having the idea that each datatype could have a second value slot where you can set a context where I can store replacement handling methods for set/get and also other functions and any data you have,…

---

## [Sample Custom Datatype Idea: Sound](https://revolt.metaeducation.com/forum/t/sample-custom-datatype-idea-sound/1899)

<div class="topic-metadata">

**Author:** [@GiuseppeChillemi](https://revolt.metaeducation.com/forum/u/GiuseppeChillemi)\
**Replies:** 3\
**Last updated:** [July 25, 2022, 1:36pm UTC](https://revolt.metaeducation.com/forum/t/sample-custom-datatype-idea-sound/1899 "2022-07-25T13:36:42Z")

</div>

As an example, lets build a simple custom structure: \[\[internal structures\]\[data1\]\[data2\]\[data3\]\[data4\]\] I want that that head corresponds to data1, and index? returns1 when positioned there. If you have an internal a…

---

## [Hex-Valued Integer Literals: Likely Not In Revolt](https://revolt.metaeducation.com/forum/t/hex-valued-integer-literals-likely-not-in-ren-c/1815)

<div class="topic-metadata">

**Author:** [@hostilefork](https://revolt.metaeducation.com/forum/u/hostilefork)\
**Replies:** 1\
**Last updated:** [July 3, 2022, 12:42am UTC](https://revolt.metaeducation.com/forum/t/hex-valued-integer-literals-likely-not-in-ren-c/1815 "2022-07-03T00:42:06Z")

</div>

On an old Trello there was a card about standardizing the differences between R3-Alpha and Red...and a checklist with only one item: Hex-valued literal notation (Rebol has none, Red used to use FFh, FFFFh, FFFFFFFFh), …

---

## [Tuple Troubles: Version 0.3.01 vs 0.3.1](https://revolt.metaeducation.com/forum/t/tuple-troubles-version-0-3-01-vs-0-3-1/1755)

<div class="topic-metadata">

**Author:** [@hostilefork](https://revolt.metaeducation.com/forum/u/hostilefork)\
**Replies:** 2\
**Last updated:** [November 25, 2021, 11:39am UTC](https://revolt.metaeducation.com/forum/t/tuple-troubles-version-0-3-01-vs-0-3-1/1755 "2021-11-25T11:39:25Z")

</div>

For better or worse, versioning in Rebol has used TUPLE!. e.g. 0.3.1 is 32-bit Windows, and 0.3.40 is 64-bit Windows If you go back and look at the old R3-Alpha file %systems.r you can see that it's pretty typical for …

---

## [Should Different-Typed Comparisons Be Less Friendly?](https://revolt.metaeducation.com/forum/t/should-different-typed-comparisons-be-less-friendly/1726)

<div class="topic-metadata">

**Author:** [@hostilefork](https://revolt.metaeducation.com/forum/u/hostilefork)\
**Replies:** 0\
**Last updated:** [September 23, 2021, 11:17am UTC](https://revolt.metaeducation.com/forum/t/should-different-typed-comparisons-be-less-friendly/1726 "2021-09-23T11:17:29Z")

</div>

I've historically been on the side of saying that I don't think it's good for types of different categories to compare equally, e.g. \<foo\> = "foo" being true can cause some headaches. But these headaches can work the ot…

---

## [Dissecting R3-Alpha's EVENT!: What Should We Think?](https://revolt.metaeducation.com/forum/t/dissecting-r3-alphas-event-what-should-we-think/1724)

<div class="topic-metadata">

**Author:** [@hostilefork](https://revolt.metaeducation.com/forum/u/hostilefork)\
**Replies:** 0\
**Last updated:** [September 22, 2021, 8:40pm UTC](https://revolt.metaeducation.com/forum/t/dissecting-r3-alphas-event-what-should-we-think/1724 "2021-09-22T20:40:57Z")

</div>

Quick Retrospective Look At EVENT! Not everyone had to deal with EVENT!. But it's relatively easy to understand as a tiny and very-limited OBJECT!. Here's what one being created looked like in R3-Alpha's %prot-http.r m…

---

## [Generalized Inertness with @](https://revolt.metaeducation.com/forum/t/generalized-inertness-with/1707)

<div class="topic-metadata">

**Author:** [@hostilefork](https://revolt.metaeducation.com/forum/u/hostilefork)\
**Replies:** 2\
**Last updated:** [September 11, 2021, 3:34pm UTC](https://revolt.metaeducation.com/forum/t/generalized-inertness-with/1707 "2021-09-11T15:34:35Z")

</div>

So this is an important thought, but it runs up against the problem that we don't have a good operator for putting @ on things...whereas with quotes, we have that operator. I'm kind of attached to this: \>\> @ block == …

---

## [ACTION! Mold Shows Cached Name (If Available)](https://revolt.metaeducation.com/forum/t/action-mold-shows-cached-name-if-available/1460)

<div class="topic-metadata">

**Author:** [@hostilefork](https://revolt.metaeducation.com/forum/u/hostilefork)\
**Replies:** 1\
**Last updated:** [September 8, 2021, 11:18am UTC](https://revolt.metaeducation.com/forum/t/action-mold-shows-cached-name-if-available/1460 "2021-09-08T11:18:11Z")

</div>

Since the label used to reference the function may be cached in the cell, I'm making MOLD give that if it's there, plus the parameter list: \>\> mold reduce \[1 2 :help\] == "\[1 2 #\[action! {help} \['topic /doc\]\]\]" It's use…

---

## [Using URL! for an IPv6 Type](https://revolt.metaeducation.com/forum/t/using-url-for-an-ipv6-type/1627)

<div class="topic-metadata">

**Author:** [@hostilefork](https://revolt.metaeducation.com/forum/u/hostilefork)\
**Replies:** 1\
**Last updated:** [August 31, 2021, 5:22am UTC](https://revolt.metaeducation.com/forum/t/using-url-for-an-ipv6-type/1627 "2021-08-31T05:22:08Z")

</div>

TUPLE! is now generalized, and can be mixed with paths, which I think is a good direction. It's also encouraging that it is mostly compatible with the previous kind of tuple. However, those who think tuples were primar…

---

## [Roaring BITSET!s](https://revolt.metaeducation.com/forum/t/roaring-bitset-s/1327)

<div class="topic-metadata">

**Author:** [@hostilefork](https://revolt.metaeducation.com/forum/u/hostilefork)\
**Replies:** 5\
**Last updated:** [August 15, 2021, 8:59pm UTC](https://revolt.metaeducation.com/forum/t/roaring-bitset-s/1327 "2021-08-15T20:59:03Z")

</div>

BITSET! has a very simplistic implementation. They are essentially a BINARY! that's as many bits long as it takes to represent the set bits. Because they don't have any form of compression, that means setting a single …

---

## [SET-GROUP! Finds its Groove](https://revolt.metaeducation.com/forum/t/set-group-finds-its-groove/1663)

<div class="topic-metadata">

**Author:** [@hostilefork](https://revolt.metaeducation.com/forum/u/hostilefork)\
**Replies:** 0\
**Last updated:** [August 15, 2021, 1:20am UTC](https://revolt.metaeducation.com/forum/t/set-group-finds-its-groove/1663 "2021-08-15T01:20:58Z")

</div>

Having seen the slick multi-return behavior for SET-BLOCK!, I wondered if there was a better purpose for SET-GROUP! than merely a synonym for SET. (word): value set word value That felt a bit anticlimactic. You save o…

---

## [Dots and Slashes: The Hyphen and Colon Disruption](https://revolt.metaeducation.com/forum/t/dots-and-slashes-the-hyphen-and-colon-disruption/1497)

<div class="topic-metadata">

**Author:** [@hostilefork](https://revolt.metaeducation.com/forum/u/hostilefork)\
**Replies:** 2\
**Last updated:** [June 6, 2020, 5:49pm UTC](https://revolt.metaeducation.com/forum/t/dots-and-slashes-the-hyphen-and-colon-disruption/1497 "2020-06-06T17:49:10Z")

</div>

I'd gotten the idea in my head from looking at code that dots were superior to slashes for field selection. I do think it looks less noisy in basic cases: if system.options.quiet \[print "Be quiet!"\] if system/options/…

---

## [GOB! type](https://revolt.metaeducation.com/forum/t/gob-type/1617)

<div class="topic-metadata">

**Author:** [@iArnold](https://revolt.metaeducation.com/forum/u/iArnold)\
**Replies:** 1\
**Last updated:** [June 2, 2021, 12:17am UTC](https://revolt.metaeducation.com/forum/t/gob-type/1617 "2021-06-02T00:17:07Z")

</div>

When creating a GOB! you can specify some values for it, or leave this empty and go for the default values like so: \>\> gb: make gob! \[\] == make custom! \[offset: 100.0x100.0 size: 0.0x0.0 alpha: 255\] And this results in …

---

## [Maps: Versatile Interface](https://revolt.metaeducation.com/forum/t/maps-versatile-interface/1465)

<div class="topic-metadata">

**Author:** [@rgchris](https://revolt.metaeducation.com/forum/u/rgchris)\
**Replies:** 4\
**Last updated:** [February 10, 2021, 4:44pm UTC](https://revolt.metaeducation.com/forum/t/maps-versatile-interface/1465 "2021-02-10T16:44:43Z")

</div>

In another episode of 'Where should you use maps vs. ...?', was reflecting on this post: I don't know if maps are the most suitable choice here, but they would certainly be the least awkward expression of such options …

---

## [Understanding VARARGS!](https://revolt.metaeducation.com/forum/t/understanding-varargs/1495)

<div class="topic-metadata">

**Author:** [@rgchris](https://revolt.metaeducation.com/forum/u/rgchris)\
**Replies:** 4\
**Last updated:** [February 9, 2021, 6:50pm UTC](https://revolt.metaeducation.com/forum/t/understanding-varargs/1495 "2021-02-09T18:50:47Z")

</div>

I don't think I fully understand varargs. First up I get an error in ReplPad when I try and specify a basic example: \>\> ints: func \[i \[integer! \<...\>\]\]\[collect \[while \[not tail? i\] \[keep take i\]\]\] \*\* Script Error: Failu…

---

## [Thoughts On the OBJECT! / MAP! Duality](https://revolt.metaeducation.com/forum/t/thoughts-on-the-object-map-duality/1481)

<div class="topic-metadata">

**Author:** [@hostilefork](https://revolt.metaeducation.com/forum/u/hostilefork)\
**Replies:** 0\
**Last updated:** [January 30, 2021, 1:01pm UTC](https://revolt.metaeducation.com/forum/t/thoughts-on-the-object-map-duality/1481 "2021-01-30T13:01:38Z")

</div>

Rebol's implementation tried to be deliberately "simple". This simplicity meant not relying on any data structure libraries...certainly not the C++ containers, as the dependency of a C++ compiler was avoided. But also …

---

## [Survey of Redefining Datatype WORD!s](https://revolt.metaeducation.com/forum/t/survey-of-redefining-datatype-word-s/1479)

<div class="topic-metadata">

**Author:** [@hostilefork](https://revolt.metaeducation.com/forum/u/hostilefork)\
**Replies:** 0\
**Last updated:** [January 29, 2021, 12:13pm UTC](https://revolt.metaeducation.com/forum/t/survey-of-redefining-datatype-word-s/1479 "2021-01-29T12:13:47Z")

</div>

Here's a quick survey of what happens when you redefine integer!: tag! R3-Alpha: Abstract, But Inaccurate R3-Alpha remembers what you wrote in the spec. r3-alpha\>\> integer!: tag! ; INTEGER! now means TAG! r3-alpha\>\> …

---

## [CLASS: An Alternative to METHOD](https://revolt.metaeducation.com/forum/t/class-an-alternative-to-method/1440)

<div class="topic-metadata">

**Author:** [@rgchris](https://revolt.metaeducation.com/forum/u/rgchris)\
**Replies:** 3\
**Last updated:** [December 24, 2020, 8:56am UTC](https://revolt.metaeducation.com/forum/t/class-an-alternative-to-method/1440 "2020-12-24T08:56:31Z")

</div>

A basic spitball proposal to have some type structured datatype that functions like object but for large datasets. Problem Representing a large quantity of items, e.g. records using the Active Record pattern, or individ…

---

## [Comments Within Binary Values](https://revolt.metaeducation.com/forum/t/comments-within-binary-values/1423)

<div class="topic-metadata">

**Author:** [@rgchris](https://revolt.metaeducation.com/forum/u/rgchris)\
**Replies:** 7\
**Last updated:** [December 6, 2020, 7:23pm UTC](https://revolt.metaeducation.com/forum/t/comments-within-binary-values/1423 "2020-12-06T19:23:09Z")

</div>

Should this be permitted? Here is an annotated PNG: #{ 89504E47 ; PNG Signature 0D0A1A0A ; Integrity Check 0000000D ; Chunk Length 49484452 ; Chunk Name (IHDR) 00000001 ; Width 00000003 ; Height 08 ;…

---

## [Working with Sub-Series vs /PART (Series "Slicing")](https://revolt.metaeducation.com/forum/t/working-with-sub-series-vs-part-series-slicing/1418)

<div class="topic-metadata">

**Author:** [@rgchris](https://revolt.metaeducation.com/forum/u/rgchris)\
**Replies:** 4\
**Last updated:** [December 1, 2020, 3:22pm UTC](https://revolt.metaeducation.com/forum/t/working-with-sub-series-vs-part-series-slicing/1418 "2020-12-01T15:22:57Z")

</div>

A common pattern in Rebol is identifying a sub-portion of a series. That a series can have an index that in many ways appears as the beginning of a block is useful: \>\> find "string! text!" "ring" == "ring! text!" Howev…

---

## [Should We Keep The Comma'd DECIMAL!/MONEY! Format?](https://revolt.metaeducation.com/forum/t/should-we-keep-the-commad-decimal-money-format/1416)

<div class="topic-metadata">

**Author:** [@hostilefork](https://revolt.metaeducation.com/forum/u/hostilefork)\
**Replies:** 2\
**Last updated:** [November 24, 2020, 6:45pm UTC](https://revolt.metaeducation.com/forum/t/should-we-keep-the-commad-decimal-money-format/1416 "2020-11-24T18:45:10Z")

</div>

When first seeing Rebol, I thought there was an interesting line of argumentation in "commas and periods are so visually similar, they shouldn't do different things in the language." This made it seem like not much of a…

---

## [Removing ISSUE! from the ANY-WORD! category](https://revolt.metaeducation.com/forum/t/removing-issue-from-the-any-word-category/1106)

<div class="topic-metadata">

**Author:** [@hostilefork](https://revolt.metaeducation.com/forum/u/hostilefork)\
**Replies:** 6\
**Last updated:** [October 13, 2020, 5:40pm UTC](https://revolt.metaeducation.com/forum/t/removing-issue-from-the-any-word-category/1106 "2020-10-13T17:40:36Z")

</div>

A controversial move in R3-Alpha was changing ISSUE! from being a versatile string type to a more strict WORD!. Not everyone was a fan. And it created several porting hassles, plus raised questions about if #123 was …

[Previous page](https://revolt.metaeducation.com/forum/c/development/datatypes/45.md)

[Next page](https://revolt.metaeducation.com/forum/c/development/datatypes/45.md?page=2)
