Post AEjbvQgGva2tdHsW12 by reynir@mcd.dk
(DIR) More posts by reynir@mcd.dk
(DIR) Post #AEjS9b1oFoagEl4Kfo by koakuma@uwu.social
2021-12-24T14:49:38Z
0 likes, 0 repeats
Hmmmmm
(DIR) Post #AEjSCu6Vmr9wGhqTxo by koakuma@uwu.social
2021-12-24T14:50:13Z
0 likes, 0 repeats
Just realized that in the presence of if clauses I'd need an explicit "return" statement in toy language
(DIR) Post #AEjSFzKymnDlMt5EX2 by koakuma@uwu.social
2021-12-24T14:50:46Z
0 likes, 0 repeats
Can't really rely on "implicitly return last variable executed" semantics anymore :akkoderp:
(DIR) Post #AEjSKG7KLCl6ZHjZXk by chjara@mk.absturztau.be
2021-12-24T14:51:35.169Z
0 likes, 0 repeats
@koakuma@uwu.social alternatively you can force return on last expression but add indirect control flow like exceptionsor instead monads
(DIR) Post #AEjSOVAGKyNQOY888G by _@notherweb.com
2021-12-24T14:52:21.022741Z
0 likes, 0 repeats
@koakuma Ilan did what now?🤔
(DIR) Post #AEjT5ZBJHJgLIz9fSC by meow@kawen.space
2021-12-24T14:51:47.731191Z
0 likes, 0 repeats
@koakuma make it like rust with separating if expressions and if statements
(DIR) Post #AEjT5ZcbdpW4fdvT04 by koakuma@uwu.social
2021-12-24T15:00:05Z
0 likes, 0 repeats
@meow Pfft I'll go with the easy design instead :02lurk:
(DIR) Post #AEjTOfiZCTnR4zowfg by koakuma@uwu.social
2021-12-24T15:03:33Z
0 likes, 0 repeats
@_ Ilan?
(DIR) Post #AEjTQtQxAxhkCKdpNQ by loke@functional.cafe
2021-12-24T15:03:56Z
0 likes, 0 repeats
@koakuma Why not? You use if in Lisp a lot and you very rarely use explicit return. I'm clearly missing something?
(DIR) Post #AEjTosz4V1Xrkl2ZVI by koakuma@uwu.social
2021-12-24T15:08:18Z
0 likes, 0 repeats
@loke Toy language is procedural and so its if clauses there doesn't return any value?(And I don't want to spend too much time on it since it'll be scrapped anyway)
(DIR) Post #AEjTu1MSmRCrBOQk76 by koakuma@uwu.social
2021-12-24T15:09:15Z
0 likes, 0 repeats
@loke Toy language is procedural and so its if clauses there doesn't return any value?(And I don't want to spend too much time on it since it'll be scrapped anyway so I'll just go with whatever way is the easiest to implement)
(DIR) Post #AEjUbzT7B8Gi3QVXwe by _@notherweb.com
2021-12-24T15:17:11.866308Z
0 likes, 0 repeats
@koakuma 😙All politics and get got chemo.
(DIR) Post #AEjbvQgGva2tdHsW12 by reynir@mcd.dk
2021-12-24T16:39:04Z
0 likes, 0 repeats
@koakuma @loke why not? They could be made to return a value, no?