Skip to content

Add a note README.md stating that the Ast is immutable #342

@ChrML

Description

@ChrML

I was checking to see if I can redistribute the AST accross multiple threads, such as for caching the AST for multiple Jint that are running the same script. So it's natural to check if the AST is immutable, and hence safe for this, like e.g. the Roslyn syntax tree is.

According to the source code I have looked at so far, the AST is indeed immutable, but it would be nice if the documentation mentioned it somewhere :). So other people later don't have to spend time investigating the source code to figure that out.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions