From 71abc60ef7fe64acae7a12ac415f9faba610fa7f Mon Sep 17 00:00:00 2001 From: hyung-hwan Date: Wed, 6 Dec 2023 02:30:38 +0900 Subject: [PATCH] updated some notes --- lang.txt | 24 ++++++++++++++++++++---- 1 file changed, 20 insertions(+), 4 deletions(-) diff --git a/lang.txt b/lang.txt index 228419e..d597d12 100644 --- a/lang.txt +++ b/lang.txt @@ -1,8 +1,24 @@ +## TODO: + can we allow commans in xlist to make it more like conventional programming langauges? + make literal frame in the compiler not use object momory. ask VM to take the byte codes and create literal frame using object memory + -> hcl->code.lit.arr must be composed of plain data. not using object memory + -> it must ask VM(locally via a function call, remotely via some communication) to create objects in the object memory + static class -> collect class info(variables information) in the compiler + dyna-class -> compiler doesn't know about classes in advance + for static cleases, super.var-name can be allowed. + for dyna-clases, the super prefix is now allowed for varibles. it's allowed for method calls only. + double-check symbol and dsymbol resolution in set, set-r, defun, defclass to decide how to make it more logical and reasonable + change syntax for MLIST -> currently (: receiver method arguments...) -> can change this to (receiver:method arguments...) or use . or -> instead? + implement module -> ::, ., or what notation? + implement namespace -> ::, ., or what notation? + review the . notation used for C-module loading... may have to change it + + ## dictionary list (DIC) - { 1 2 3 4 } - { 1: 2, 3: 4} - {} -> empty dictionary - { 1 } -> error, no value. dictionary requires even number of items. + #{ 1 2 3 4 } + #{ 1: 2, 3: 4} + #{} -> empty dictionary + #{ 1 } -> error, no value. dictionary requires even number of items. ## array list [ 1 2 3 4]