Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

Idea- Better implementation of list vars?

Đang mở
#14 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Đánh giá

Độ khó
5/5
Thời gian dự kiến
Hơn một tuần
Mức phù hợp với người mới
20/100
Loại issue
Tính năng
Độ rõ ràng
Cần làm rõ
Mức độ hoạt động
Đình trệ
Công nghệ
c
Lĩnh vực
compilers

Hướng nghiên cứu

Start by reviewing the current tcl_var definition and the linked uLisp object definition. Determine whether the proposed union, nested variables, type flag, and indexed names fit ParTcl's existing representation. Done would require an agreed design and implementation scope, but the issue does not name files, tests, or a specific acceptance criterion.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

Taking inspiration from the definition of the object in uLisp you could use a C union for tcl_var to be able to represent linked lists as more tcl_vars:

 struct tcl_var {
   tcl_value_t *name;
+  union {
     tcl_value_t *value;
+    struct tcl_var *values; // Pointer to nested list or hashmap
+  }
+  char type; // Flag to determine which pointer in the union to take
   struct tcl_var *next;
 };

The name would hold a string of the index (possibly in hexadecimal, to speed array lookup).

Now that a var can point to another var, this could also lead to hashmaps (name being the key string etc) and nested data structures.

Does this sound like a possibility?

Ngôn ngữ chính
C
Star
528
Fork
64
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Chuẩn bị môi trường

Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của zserge/partcl

Tất cả issue của zserge/partcl

Issue tương tự

Thêm issue về C

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.