dart-lang / dart-lang/language

Dynamic property access

Open
#1,773 1 comment 0 reactions 0 assignees View on GitHub
feature
Dominant language
TeX
Stars
2.9k
Forks
239
Avg merge
2d 18h
Merged PRs (30d)
14

Description

There is currently no syntax in dart fr dynamic property access without the dart:mirrors library.
In javscript we can do something like obj[prop] to access a property dynamically. dart may also have a feature like this.

Contributor guide

Open the contributing guide

Research direction

The issue names no files or tests. Start by reviewing Dart's existing property-access rules and the dart:mirrors limitation, then compare the requested behavior with JavaScript's obj[prop] syntax. Done requires a concrete language-design proposal with specified syntax and behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
dart
Domain
compilers
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.