Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
4870 Lượt xem

We have this scenario where users define a formula, and then they can include it in a new formula by referencing its code, this operation can ocurr (currently) limitless times. Based on the analyses made, we can expect less than 300 levels of referencing depth.

We're working on the reverse operation now, that is, replacing the codes in a formula for the actual operations described in the referenced formula. Naturally, this should continue until no more codes are found.

Would a recursive function be safer than a single loop? Consider that we need to use the ORM search and browse to find every formula needed.

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
4
thg 1 16
10541
3
thg 6 15
21301
0
thg 8 15
4754
0
thg 9 19
98
1
thg 7 17
4305