Re: [stack] Some thoughts on Object Cat
"Christopher Diggins" <[email protected]>
| Newsgroups | gmane.comp.lang.concatenative |
|---|---|
| Message-ID | <[email protected]> |
An alternative syntax is: slot.get // gets the slot, throws type error if unrecognized slot.set // sets the slot, throws type error if unrecognized slot.exists // queries if the slot exists slot.add // adds a new slot of the given type, overwriting existing slots - Christopher > Christopher Diggins scripsit: > > > > 1) Adding a new instruction to create an object: > > > > object : ( -> object) > > > > 2) Adding a new instruction form (any word ending with '+') to > > indicate adding a field to an object: > > +1 > > > 3) Adding a new instruction form (any word ending with '?') to > > indicate a field getter > > To me, a "?" suffix indicates a predicate (number? list? string?). Find some > other character. > > > > 4) Adding a new instruction form (any word ending with '!') to > > indicate a field setter > > +1 > > -- > John Cowan http://www.ccil.org/~cowan [email protected] > Be yourself. Especially do not feign a working knowledge of RDF where > no such knowledge exists. Neither be cynical about RELAX NG; for in > the face of all aridity and disenchantment in the world of markup, > James Clark is as perennial as the grass. --DeXiderata, Sean McGrath > > > > Messages in this topic (3) Reply (via web post) | Start a new topic > Messages | Files | Photos | Links | Database | Polls | Members | Calendar > > Change settings via the Web (Yahoo! ID required) > Change settings via email: Switch delivery to Daily Digest | Switch format > to Traditional > Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe > > > Recent Activity > > 1 > New MembersVisit Your Group > > Yahoo! Finance > > It's Now Personal > > Guides, news, > > advice & more. > Change your life > > with Yahoo! Groups > > balance nutrition, > > activity & well-being. > Cat Fanatics > > on Yahoo! Groups > Find people who are > crazy about cats.