Conversation

most confusing syntactic construct to ever exist and you NEST THEM ???? REALLY ???

3
0
3
@fiore whats the most confusing syntactic construct
1
0
0
@fiore the ternary operator?

its literally if else then what
1
0
0

@coolbean yea but its always so jarring to see amd it never flows cleanly to me idk

2
0
1
@fiore you'd love the way forth makes em look

let me just say, forth syntax makes it so that alternate takes like when or unless start feeling preferable to me
1
0
0

@coolbean im so glad rust doesnt have ternaries . good choice ngl

1
0
1
@fiore im literally never touching rust, man. even ocaml has ternaries and its way more functional than rust
1
0
1
@fiore @coolbean It has if-expressions though, that's the same.
3
0
1

@coolbean idk i can appreciate a bold choice like this . also all blocks evaluate to smth so that make things much nicer than other similar languages like c sometimes .

0
0
0
@kimapr @chjara @fiore yea, i mean have you seen common lisp?
1
0
2

@coolbean @chjara @fiore no but i’ve seen GNU Guile

and GNU Guix with its “gex pressions”

2
0
3
@kimapr @coolbean @fiore Guile is such a mess lmao. The everything Scheme.
2
0
2
@chjara @fiore @kimapr which is impressive considering stklos exists too
1
0
2
@chjara @fiore @kimapr honestly stklos actually interests me quite a lot mostly because nyx keeps defending clos and its rubbing off on me
0
0
2

@chjara @coolbean @fiore it has coroutines/fibers and OOP and multithreading and and

2
0
3
@kimapr @coolbean @fiore A lot of fundamental features like modules and records are duplicated too because it has its own thing and then the R6/7(FUNNY NUMBER)RS equivalent.
1
0
2

@chjara @coolbean @fiore heh, almost if foo; then bar; else baz; fi

0
0
1

@chjara @coolbean @fiore to be fair guile’s thing probably predates that. kind of like the commonjs vs es6 modules thing

1
0
2
@kimapr @coolbean @fiore Although unlike JS where standard constructs have taken over, I've only seen Guile extensions used in Guile code.
1
0
0

@fiore @coolbean it’s either that or if (shit) shart() else piss();

2
0
0
@fiore @coolbean this is probably illegal c but whatever u get da point. single line if statements without an else clause are possible
1
0
1
@fiore @chjara @kimapr i thooht lua was your favorite lisp
1
0
1