Talk:Data types

From Reia

Jump to: navigation, search

I believe in Dicts ~atom:value could be atom:value To convey the current semantic one could use (variable):value or :variable:value or @variable:value or whatever is short and convenient.

Rational: - It works this way in successful other languages (including Ruby 1.9). - It is the more common case - Syntax sugar matters (as you know)

Side note: I once designed a language where every value had a "name" attached. That "name" was an Atom. For Objects, that "name" was the object's class name. Weird, but it worked beautifully. http://virteal.com/TheEmulLanguage

I'd like to support something like this in Reia, in the form of keyword arguments (ala Python). Ruby presently uses hashes for pseudo-keyword arguments, and I'd like to have something halfway between the Ruby 1.9 hash syntax (with Ruby's implicit hashing of arguments) and Python keyword argument syntax. Tony 04:22, 26 September 2008 (UTC)
Personal tools