#3 Global variables in door namespace

Mở
%! (template.HTML=2 năm trước cách đây)đang mở bởi stevet · 1 ý kiến

There are many variables in the door namespace.

I'm not sure if that's really a problem or not. You can't sensibly have more then one door instance running at a time.

It makes the code simpler to just check the global, rather then having everything need an instance of the Door structure.

There are many variables in the door namespace. I'm not sure if that's really a problem or not. You can't sensibly have more then one door instance running at a time. It makes the code simpler to just check the global, rather then having everything need an instance of the Door structure.
bugz đã nhận xét 1 năm trước cách đây
Chủ sở hữu

It might make it simpler for users to use the library if all of the variables are in the door, rather then some in the structure, and some in the namespace.

It might make it simpler for users to use the library if all of the variables are in the door, rather then some in the structure, and some in the namespace.
Đăng nhập để tham gia bình luận.
Không có Milestone
Không có người được phân công
2 tham gia
Đang tải...
Hủy bỏ
Lưu
Ở đây vẫn chưa có nội dung nào.