Skip to content

strictness of indexing #422

@msaaltink

Description

@msaaltink

Here's another place where the reference evaluator and REPL evaluator disagree:

Cryptol> :eval [(),()] @ 3
()
Cryptol> [(),()] @ 3

invalid sequence index: 3

I think the reference evaluator actually is strict in the index, but the domain for () has no room for an error, as we see in

Cryptol> (error "?"):()
()

We of course see the same issue with the other three indexing operators !, @@, and !!.

Metadata

Metadata

Assignees

Labels

semanticsIssues related to the dynamic semantics of Cryptol.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions