Euphoria Ticket #761: add records (named tuples) to the language

right now, euphoria has a sequence combined with enum, as the closest thing to a record. I suggest making it a "first-class" citizen. they don't include methods like a class. just "field" names, and possibly types for those fields. the record itself also has a name.

Details

Type: Feature Request Severity: Minor Category: Language
Assigned To: unknown Status: Won't Fix Reported Release:
Fixed in SVN #: View VCS: none Milestone:

1. Comment by jimcbrown Apr 18, 2012

We already have maps in the stdlib, though they're not a "first-class citizen" the way sequences or regex types are.

In 4.1 we'll also have something called memstructs.

I'm not sure that we need named tuples in the language itself. They're just syntax sugar.

2. Comment by kobi Apr 18, 2012

nevermind, I'm a beginner. I understood now how to define a type by passing a sequence as argument. so this is unnecessary, as a matter of fact.

I withdraw the feature request.

Search



Quick Links

User menu

Not signed in.

Misc Menu