gonna make a language that looks like this
fcton maine)( } print)'hello world`(: {Conversation
Notices
-
Embed this notice
malevolent dictator for life (astrid@fedi.astrid.tech)'s status on Wednesday, 20-Mar-2024 07:39:20 JST malevolent dictator for life - clacke likes this.
-
Embed this notice
NeonPurpleStar :heart_bi: (neonpurplestar@outerheaven.club)'s status on Wednesday, 20-Mar-2024 07:39:19 JST NeonPurpleStar :heart_bi: @astrid :nkoGun: -
Embed this notice
malevolent dictator for life (astrid@fedi.astrid.tech)'s status on Wednesday, 20-Mar-2024 13:27:54 JST malevolent dictator for life @ctrl https://fedi.astrid.tech/notice/Ag1ZRIBN5uI79ZTfhA clacke likes this. -
Embed this notice
Cuteroll, shark aficionado (ctrl@alico.nexus)'s status on Wednesday, 20-Mar-2024 13:27:55 JST Cuteroll, shark aficionado @astrid@fedi.astrid.tech you should add something like 2 != 2 also
In conversation permalink -
Embed this notice
malevolent dictator for life (astrid@fedi.astrid.tech)'s status on Wednesday, 20-Mar-2024 13:27:59 JST malevolent dictator for life Whereas <- is bind reference, the <= operator is bind value. 'foo` <= 3 makes the string foo now have a value of 3, so any time your code uses the string foo, it is now treated as though it were the number 3.
In conversation permalink clacke likes this. -
Embed this notice
malevolent dictator for life (astrid@fedi.astrid.tech)'s status on Wednesday, 20-Mar-2024 13:28:01 JST malevolent dictator for life Var assignments are with <- and member access is with -> but also var assignments are an expression that returns what the var used to be, so you can have
```
oldval <- var <- obj -> property <- newval
```
to simulate a shift register consisting of oldval, var, and obj->property with newval being shifted inIn conversation permalink -
Embed this notice
malevolent dictator for life (astrid@fedi.astrid.tech)'s status on Wednesday, 20-Mar-2024 13:28:01 JST malevolent dictator for life You can also do something like this
x <- myproperty # myproperty isn't assigned yet so now it's treated as an atom obj -> )x <- mynextproperty( # access myproperty in obj and bind x to atom mynextproperty x<- obj -> x # access mynextproperty in obj and bind to xIn conversation permalink -
Embed this notice
malevolent dictator for life (astrid@fedi.astrid.tech)'s status on Wednesday, 20-Mar-2024 13:28:02 JST malevolent dictator for life no, ]1, 2, 3[ is not supported just to fuck with you In conversation permalink -
Embed this notice
malevolent dictator for life (astrid@fedi.astrid.tech)'s status on Wednesday, 20-Mar-2024 13:28:03 JST malevolent dictator for life The syntax for a cons cell is ]leftexpr, rightexpr[ and you can make a linked list like ]1, ]2, ]3, nIl[[[. nIl is case sensitive but nothing else is
In conversation permalink -
Embed this notice
malevolent dictator for life (astrid@fedi.astrid.tech)'s status on Wednesday, 20-Mar-2024 13:28:04 JST malevolent dictator for life smiley lang because you see a lot of (: at the end of your lines In conversation permalink -
Embed this notice
malevolent dictator for life (astrid@fedi.astrid.tech)'s status on Wednesday, 20-Mar-2024 13:28:09 JST malevolent dictator for life @lunacb
> #define : ;
holy shit @Seirdy referenceIn conversation permalink clacke likes this. -
Embed this notice
[BUG] Lunya :3 (lunacb@wetdry.world)'s status on Wednesday, 20-Mar-2024 13:28:10 JST [BUG] Lunya :3 In conversation permalink -
Embed this notice
violator (violator@mathstodon.xyz)'s status on Wednesday, 20-Mar-2024 13:28:20 JST violator @astrid how do you declare the scope/visibility of the function? I need to know whether its public or followers only
In conversation permalink clacke likes this.